[evolvis-commits] r18498: also sort assignees in Tasks

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Jul 17 17:32:52 CEST 2012


Author: mirabilos
Date: 2012-07-17 17:32:52 +0200 (Tue, 17 Jul 2012)
New Revision: 18498

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectModel.class.php
   trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
   trunk/gforge_base/evolvisforge-5.1/src/www/pm/include/ProjectTaskHTML.class.php
Log:
also sort assignees in Tasks

Modified: trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectModel.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectModel.class.php	2012-07-12 14:28:27 UTC (rev 18497)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectModel.class.php	2012-07-17 15:32:52 UTC (rev 18498)
@@ -43,7 +43,8 @@
 	public function getAssignedTo() {
 		return $result=db_query_params('SELECT users.realname FROM users,project_assigned_to
 			WHERE users.user_id=project_assigned_to.assigned_to_id
-			    AND project_task_id=$1',
+			    AND project_task_id=$1
+			ORDER BY users.user_name',
 		    array(
 			$this->getProjectTask()->getID(),
 		    ));

Modified: trunk/gforge_base/evolvisforge-5.1/src/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-07-12 14:28:27 UTC (rev 18497)
+++ trunk/gforge_base/evolvisforge-5.1/src/debian/changelog	2012-07-17 15:32:52 UTC (rev 18498)
@@ -8,10 +8,10 @@
   * MW plugin: make upgrading spit out less error or warning msgs
   * Drop libjs-yui (unused except in phpwiki plugin and gforge theme)
   * Add the maven user to only active nōn-template groups
-  * Tracker: sort the assignee drop-down field by unixname
+  * Tracker, Tasks: sort the assignee drop-down field by unixname
   * Docman: fix SFTP upload
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Thu, 12 Jul 2012 16:27:56 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Tue, 17 Jul 2012 14:46:46 +0200
 
 fusionforge (1:5.1.1+evolvis64) unstable; urgency=low
 

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/pm/include/ProjectTaskHTML.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/pm/include/ProjectTaskHTML.class.php	2012-07-12 14:28:27 UTC (rev 18497)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/pm/include/ProjectTaskHTML.class.php	2012-07-17 15:32:52 UTC (rev 18498)
@@ -49,6 +49,7 @@
 	function multipleAssignedBox($name='assigned_to[]', $control='select', $tagId='default') {
 		$engine = RBACEngine::getInstance();
 		$techs = $engine->getUsersByAllowedAction('pm', $this->ProjectGroup->getID(), 'tech');
+		sortUserList($techs, 'unixname');
 
 		$tech_id_arr = array();
 		$tech_name_arr = array();



More information about the evolvis-commits mailing list