[Fusionforge-commits] r6797 - trunk/gforge/common/pm

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jan 29 12:18:55 CET 2009


Author: lolando
Date: 2009-01-29 12:18:54 +0100 (Thu, 29 Jan 2009)
New Revision: 6797

Modified:
   trunk/gforge/common/pm/ProjectTaskFactory.class.php
Log:
Bugfix for tasks assigned to multiple people

Modified: trunk/gforge/common/pm/ProjectTaskFactory.class.php
===================================================================
--- trunk/gforge/common/pm/ProjectTaskFactory.class.php	2009-01-29 00:21:51 UTC (rev 6796)
+++ trunk/gforge/common/pm/ProjectTaskFactory.class.php	2009-01-29 11:18:54 UTC (rev 6797)
@@ -176,7 +176,11 @@
 
 		//if assigned to selected, and more to where clause
 		if ($this->assigned_to) {
-			$assigned_str="AND project_assigned_to.assigned_to_id='".$this->assigned_to."'";
++			if (is_array ($this->assigned_to)) {
++				$assigned_str="AND project_assigned_to.assigned_to_id IN (".join ($this->assigned_to,', ').")";
++			} else {
++				$assigned_str="AND project_assigned_to.assigned_to_id='".$this->assigned_to."'";
++			}
 			$assigned_str2=',project_assigned_to';
 			$assigned_str3='project_task_vw.project_task_id=project_assigned_to.project_task_id AND';
 




More information about the Fusionforge-commits mailing list