Quantcast
Channel: ProjeQtOr free project management software - ProjeQtOr free project management software - Recent Topics - ProjeQtOr
Viewing all articles
Browse latest Browse all 6799

Outmode in jsonPlanning.pdf - by: antonio.grr

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 6799

Trending Articles