[evolvis-commits] r17539: [#1586] Sorting by priority on My Page

papel at evolvis.org papel at evolvis.org
Wed Sep 7 10:15:43 CEST 2011


Author: papel
Date: 2011-09-07 10:15:42 +0200 (Wed, 07 Sep 2011)
New Revision: 17539

Modified:
   branches/evolvis-pa/common/pm/ProjectTasksForUser.class.php
   branches/evolvis-pa/common/tracker/ArtifactsForUser.class.php
   branches/evolvis-pa/www/my/index.php
Log:
[#1586] Sorting by priority on My Page

Modified: branches/evolvis-pa/common/pm/ProjectTasksForUser.class.php
===================================================================
--- branches/evolvis-pa/common/pm/ProjectTasksForUser.class.php	2011-09-06 22:00:39 UTC (rev 17538)
+++ branches/evolvis-pa/common/pm/ProjectTasksForUser.class.php	2011-09-07 08:15:42 UTC (rev 17539)
@@ -84,7 +84,7 @@
 				AND pgl.group_project_id=ptv.group_project_id
 				AND ptv.status_id IN (1,4,5,6)
 				AND pat.assigned_to_id=$1
-			ORDER BY group_name,project_name',
+			ORDER BY group_name,project_name,priority DESC',
 							 array ($this->User->getID())) ;
 	}
 	

Modified: branches/evolvis-pa/common/tracker/ArtifactsForUser.class.php
===================================================================
--- branches/evolvis-pa/common/tracker/ArtifactsForUser.class.php	2011-09-06 22:00:39 UTC (rev 17538)
+++ branches/evolvis-pa/common/tracker/ArtifactsForUser.class.php	2011-09-07 08:15:42 UTC (rev 17539)
@@ -169,6 +169,7 @@
 		$select = "SELECT av.artifact_id, av.priority, av.summary, av.group_artifact_id FROM artifact_vw av";
 		$join = " INNER JOIN artifact_group_list at ON (av.group_artifact_id = at.group_artifact_id)";
 		$where = " WHERE av.assigned_to=$1 AND av.status_id=1 AND at.datatype != 1";
+		$where .= " ORDER BY av.group_artifact_id, av.priority DESC";
 		$sqlQuery = $select . $join . $where;
 
 		return $this->getArtifactsFromSQLwithParams($sqlQuery, array($this->User->getID()));
@@ -180,7 +181,7 @@
 	*	@return Artifact[] The array of Artifacts
 	*/
 	function &getSubmittedArtifactsByGroup() {
-		return $this->getArtifactsFromSQLwithParams('SELECT * FROM artifact_vw av WHERE av.submitted_by=$1 AND av.status_id=1 ORDER BY av.group_artifact_id, av.artifact_id DESC',
+		return $this->getArtifactsFromSQLwithParams('SELECT * FROM artifact_vw av WHERE av.submitted_by=$1 AND av.status_id=1 ORDER BY av.group_artifact_id, av.priority DESC',
 							    array($this->User->getID())) ;
 	}
 }

Modified: branches/evolvis-pa/www/my/index.php
===================================================================
--- branches/evolvis-pa/www/my/index.php	2011-09-06 22:00:39 UTC (rev 17538)
+++ branches/evolvis-pa/www/my/index.php	2011-09-07 08:15:42 UTC (rev 17539)
@@ -139,8 +139,6 @@
 
 <div><b><?php echo _('Assigned bugs'); ?></b></div>
 
-<!-- [#1590] Possibility to hide tracker items with the resolution fixed on "My Page" -->
-
 <div class="tabbertab myPageArtifactTaskDiv" title="<?php echo _('Assigned Bugs'); ?>">
 	<?php
 	 
@@ -266,13 +264,8 @@
 ?>
 </div>
 <br />
-<!-- END -->
 
 
-
-
-
-
 <?php } ?>
 
 <?php if ($GLOBALS['sys_use_pm']) { ?>
@@ -281,8 +274,6 @@
 
 <div class="tabbertab myPageArtifactTaskDiv" title="<?php echo _('Assigned Tasks'); ?>">
 
-<!-- [#1846] Ausblenden von Tasks die fertiggestellt sind auf "Meine(r) Seite". -->
-
 <?php
 	/*
 		Tasks assigned to me



More information about the evolvis-commits mailing list