[evolvis-commits] r17175: Database Format Bugfix for migration from pre-evolvis30

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Apr 4 15:22:43 CEST 2011


Author: mirabilos
Date: 2011-04-04 15:22:43 +0200 (Mon, 04 Apr 2011)
New Revision: 17175

Modified:
   trunk/gforge_base/evolvisforge/gforge/common/tracker/ArtifactFactory.class.php
   trunk/gforge_base/evolvisforge/gforge/debian/changelog
Log:
Database Format Bugfix for migration from pre-evolvis30

… and I thought, finally, I’d had had it


Modified: trunk/gforge_base/evolvisforge/gforge/common/tracker/ArtifactFactory.class.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/common/tracker/ArtifactFactory.class.php	2011-04-03 07:56:47 UTC (rev 17174)
+++ trunk/gforge_base/evolvisforge/gforge/common/tracker/ArtifactFactory.class.php	2011-04-04 13:22:43 UTC (rev 17175)
@@ -168,7 +168,15 @@
 							/* if it’s numeric, chances are good */
 							$_submitted_by = $pref_arr[5];
 							$tmp = (int)$_submitted_by;
-							if ($_submitted_by != $tmp)
+							/* force a string comparision */
+							if ($_submitted_by != "".$tmp)
+								/*
+								 * in theory, we could use
+								 * $pref_arr[6] here and
+								 * make $pref_arr[5] the
+								 * $_extra_fields but it
+								 * may just as well break
+								 */
 								$_submitted_by = 0;
 						}
 						$set='custom';

Modified: trunk/gforge_base/evolvisforge/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-04-03 07:56:47 UTC (rev 17174)
+++ trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-04-04 13:22:43 UTC (rev 17175)
@@ -1,3 +1,9 @@
+gforge (4.8.3+evolvis31) unstable; urgency=high
+
+  * [#944] Database Format Bugfix for migration from pre-evolvis30
+
+ -- Thorsten Glaser <t.glaser at tarent.de>  Mon, 04 Apr 2011 14:58:26 +0200
+
 gforge (4.8.3+evolvis30) unstable; urgency=high
 
   [ Thorsten Glaser ]



More information about the evolvis-commits mailing list