[Fusionforge-commits] r10024 - branches/Branch_5_0/gforge/www/tracker/reporting

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Jun 11 16:20:24 CEST 2010


Author: lolando
Date: 2010-06-11 16:20:23 +0200 (Fri, 11 Jun 2010)
New Revision: 10024

Modified:
   branches/Branch_5_0/gforge/www/tracker/reporting/index.php
Log:
Fixed default timespan and SQL query for tracker reporting

Modified: branches/Branch_5_0/gforge/www/tracker/reporting/index.php
===================================================================
--- branches/Branch_5_0/gforge/www/tracker/reporting/index.php	2010-06-11 14:06:42 UTC (rev 10023)
+++ branches/Branch_5_0/gforge/www/tracker/reporting/index.php	2010-06-11 14:20:23 UTC (rev 10024)
@@ -51,11 +51,11 @@
 
 if (!$start) {
 	$z =& $report->getMonthStartArr();
-	$start = $z[0];
+	$start = $z[count($z)-1];
 }
 if (!$end || $end <= $start) {
 	$z =& $report->getMonthStartArr();
-	$end = $z[count($z)-1];
+	$end = $z[0];
 }
 
 $group =& group_get_object($group_id);
@@ -95,7 +95,7 @@
         AND (
                            (rs.section_name = $3 AND rs.value = $4)
                            OR (rs.section_name = $5 AND rs.value = $6)
-                           OR (rs.section_name = $6 AND rs.value::integer >= 1 AND rs.ref_id = agl.group_artifact_id)
+                           OR (rs.section_name = $7 AND rs.value::integer >= 1 AND rs.ref_id = agl.group_artifact_id)
         )',
 			array($group_id,
 			      user_getid() ,




More information about the Fusionforge-commits mailing list