[Fusionforge-commits] r12201 - in trunk/src: common/tracker www/tracker/include

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 9 16:16:20 CET 2011


Author: lolando
Date: 2011-02-09 16:16:15 +0100 (Wed, 09 Feb 2011)
New Revision: 12201

Modified:
   trunk/src/common/tracker/Artifact.class.php
   trunk/src/www/tracker/include/ArtifactTypeHtml.class.php
Log:
Display completion rate of related tasks in trackers

Modified: trunk/src/common/tracker/Artifact.class.php
===================================================================
--- trunk/src/common/tracker/Artifact.class.php	2011-02-09 15:15:48 UTC (rev 12200)
+++ trunk/src/common/tracker/Artifact.class.php	2011-02-09 15:16:15 UTC (rev 12201)
@@ -717,7 +717,7 @@
 	 */
 	function getRelatedTasks() {
 		if (!$this->relatedtasks) {
-			$this->relatedtasks = db_query_params ('SELECT pt.group_project_id,pt.project_task_id,pt.summary,pt.start_date,pt.end_date,pgl.group_id,pt.status_id,ps.status_name
+			$this->relatedtasks = db_query_params ('SELECT pt.group_project_id,pt.project_task_id,pt.summary,pt.start_date,pt.end_date,pgl.group_id,pt.status_id,pt.percent_complete,ps.status_name
 			FROM project_task pt, project_group_list pgl, project_status ps
 			WHERE pt.group_project_id = pgl.group_project_id
                         AND ps.status_id = pt.status_id

Modified: trunk/src/www/tracker/include/ArtifactTypeHtml.class.php
===================================================================
--- trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2011-02-09 15:15:48 UTC (rev 12200)
+++ trunk/src/www/tracker/include/ArtifactTypeHtml.class.php	2011-02-09 15:16:15 UTC (rev 12201)
@@ -330,7 +330,7 @@
 						'&group_id='.$groupid.'&group_project_id='.$projectid.'">[T'.$taskid.'] '.$summary.'</a></td>
 						<td>'.$startdate.'</td>
 						<td>'.$enddate.'</td>
-						<td>'.$status.'</td>'.
+						<td>'.$status.' ('.$taskinfo['percent_complete'].'%)</td>'.
 					(($is_admin) ? '<td><input type="checkbox" name="remlink[]" value="'.$taskid.'" /></td>' : '').
 					'</tr>';
 			}




More information about the Fusionforge-commits mailing list