[evolvis-commits] r18250: [#2964] order elements upon cloning

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Apr 5 23:02:11 CEST 2012


Author: mirabilos
Date: 2012-04-05 23:02:11 +0200 (Thu, 05 Apr 2012)
New Revision: 18250

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
Log:
[#2964] order elements upon cloning


Modified: trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2012-04-05 21:02:07 UTC (rev 18249)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/tracker/ArtifactType.class.php	2012-04-05 21:02:11 UTC (rev 18250)
@@ -655,8 +655,8 @@
 			return false;
 		}
 		$efs = $at->getExtraFields();
+		ksort($efs);
 
-
 		//
 		//	Iterate list of extra fields
 		//
@@ -672,7 +672,7 @@
 			//
 			//	Iterate the elements
 			//
-			$resel = db_query_params ('SELECT * FROM artifact_extra_field_elements WHERE extra_field_id=$1',
+			$resel = db_query_params ('SELECT * FROM artifact_extra_field_elements WHERE extra_field_id=$1 ORDER BY element_id',
 						  array ($ef['extra_field_id'])) ;
 			while ($el = db_fetch_array($resel)) {
 				//new element



More information about the evolvis-commits mailing list