[Fusionforge-commits] r9188 - branches/Branch_5_0/gforge/www/pm
Roland Mas
lolando at libremir.placard.fr.eu.org
Sat Mar 20 22:28:18 CET 2010
Author: lolando
Date: 2010-03-20 22:28:17 +0100 (Sat, 20 Mar 2010)
New Revision: 9188
Modified:
branches/Branch_5_0/gforge/www/pm/gantt.php
Log:
Backport from trunk: Gantt minor changes.
Modified: branches/Branch_5_0/gforge/www/pm/gantt.php
===================================================================
--- branches/Branch_5_0/gforge/www/pm/gantt.php 2010-03-20 21:28:06 UTC (rev 9187)
+++ branches/Branch_5_0/gforge/www/pm/gantt.php 2010-03-20 21:28:17 UTC (rev 9188)
@@ -18,12 +18,12 @@
$offset = getIntFromRequest('offset');
$_assigned_to = getIntFromRequest('_assigned_to');
-$_status = getStringFromRequest('_status');
+$_status = getIntFromRequest('_status');
$_order = getStringFromRequest('_order');
$_resolution = getStringFromRequest('_resolution');
$_category_id = getIntFromRequest('_category_id');
$_size = getIntFromRequest('_size');
-$max_rows = getIntFromRequest('max_rows');
+$max_rows = getIntFromRequest('max_rows',50);
$ptf->setup($offset,$_order,$max_rows,'custom',$_assigned_to,$_status,$_category_id);
if ($ptf->isError()) {
@@ -63,8 +63,10 @@
$graph->ShowHeaders( GANTT_HDAY | GANTT_HWEEK | GANTT_HMONTH);
} elseif ($_resolution == 'Weeks') {
$graph->ShowHeaders( GANTT_HWEEK | GANTT_HMONTH);
+} elseif ($_resolution == 'Months') {
+ $graph->ShowHeaders( GANTT_HMONTH | GANTT_HYEAR);
} else {
- $graph->ShowHeaders( GANTT_HMONTH);
+ $graph->ShowHeaders( GANTT_HYEAR);
}
// Instead of week number show the date for the first day in the week
@@ -79,7 +81,7 @@
// Use the short name of the month together with a 2 digit year
// on the month scale
-$graph->scale->month->SetStyle( MONTHSTYLE_SHORTNAMEYEAR2);
+$graph->scale->month->SetStyle( MONTHSTYLE_SHORTNAME);
$rows=count($pt_arr);
More information about the Fusionforge-commits
mailing list