View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Outmode in jsonPlanning.pdf - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Outmode in jsonPlanning.pdf

More
09 Fév 2017 19:28 #1 by antonio.grr
Hi.
In jsonPlanning.pdf at row 100 has been added the following lines :
if (array_key_exists('outMode', $_REQUEST) && $_REQUEST == 'csv') {
$outMode = 'csv';
} else {
$outMode = 'html';
}
So outMode will assume either the value 'csv' or 'html' and some tests in the following code semm to be useless.

( row 129)
if (! isset($outMode)) { $outMode=""; }
( row 244 )
if ($outMode=='mpp') {
exportGantt($result);
} else {
displayGantt($result);
}
(rows 853,861,867)
... and $outMode!='pdf'

The function exportGantt seems to be no more used.
Is it true ?

Please Connexion or Create an account to join the conversation.

More
09 Fév 2017 20:11 #2 by babynus
Replied by babynus on topic Outmode in jsonPlanning.pdf
In fact jsonPlanning_pdf.php is a contribution from member that was designed by copy of jsonPlanning.php and adapted to manage automatic zooming to fit pdf page width.
So, so functions may not be used in that file, only usefull for jsonPlanning.php.
It is the case for exportGantt() thzt is used only in jsonPlanning.php.
It's been preserve for simplicity and to easy reporting changes from jsonPlanning.php to jsonPlanning_pdf.php when needed (for some bug fixing for instance)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
09 Fév 2017 20:34 #3 by antonio.grr
I'm very sorry : my question is misleading for a silly mistake. Where I wrote jsonPlanning.pdf I meant jsonPlanning.php (sometimes cut & paste creates monsters).
I know that the function exportGantt was not used in jsonPlanning_pdf.php; what's new is that now the same function is unreachable in jsonPlanning.php

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.