[Fusionforge-commits] r13122 - branches/Branch_5_0/gforge/common/tracker

Thorsten Glaser mirabilos at fusionforge.org
Thu Apr 14 11:54:57 CEST 2011


Author: mirabilos
Date: 2011-04-14 11:54:57 +0200 (Thu, 14 Apr 2011)
New Revision: 13122

Modified:
   branches/Branch_5_0/gforge/common/tracker/ArtifactFactory.class.php
Log:
fix for [#295] by I?\195?\177igo Martinez
also, simplify


Modified: branches/Branch_5_0/gforge/common/tracker/ArtifactFactory.class.php
===================================================================
--- branches/Branch_5_0/gforge/common/tracker/ArtifactFactory.class.php	2011-04-14 09:52:28 UTC (rev 13121)
+++ branches/Branch_5_0/gforge/common/tracker/ArtifactFactory.class.php	2011-04-14 09:54:57 UTC (rev 13122)
@@ -341,11 +341,10 @@
 		//if assigned to selected, and more to where clause
 		if ($this->assigned_to) {
 			if (is_array($this->assigned_to)) {
-				$wheresql .= 'AND assigned_to = ANY ($'.$paramcount++ ;
+				$wheresql .= ' AND assigned_to = ANY ($'.$paramcount++.')';
 				$params[] = db_int_array_to_any_clause ($this->assigned_to) ;
-				$wheresql .= ')' ;
 			} else {
-				$wheresql .= 'AND assigned_to = $'.$paramcount++ ;
+				$wheresql .= ' AND assigned_to = $'.$paramcount++ ;
 				$params[] = $this->assigned_to ;
 			}
 		}




More information about the Fusionforge-commits mailing list