[Fusionforge-commits] r15906 - trunk/src/common/tracker

Olivier Berger olberger at fusionforge.org
Fri Jun 29 17:29:18 CEST 2012


Author: olberger
Date: 2012-06-29 17:29:17 +0200 (Fri, 29 Jun 2012)
New Revision: 15906

Modified:
   trunk/src/common/tracker/Artifact.class.php
Log:
For whatever reason, this triggered bugs in the OSLC-CM server, so I hope it won't break anything

Modified: trunk/src/common/tracker/Artifact.class.php
===================================================================
--- trunk/src/common/tracker/Artifact.class.php	2012-06-29 15:24:22 UTC (rev 15905)
+++ trunk/src/common/tracker/Artifact.class.php	2012-06-29 15:29:17 UTC (rev 15906)
@@ -1828,8 +1828,14 @@
 		default:
 			$aa=$a->getExtraFieldDataText();
 			$ba=$b->getExtraFieldDataText();
-			$af=$aa[$this->criterion]['value'];
-			$bf=$ba[$this->criterion]['value'];
+			if(!isset($this->criterion) || empty($this->criterion)) {
+                                $criterion = 1;
+			}
+			else {
+                                $criterion = $this->criterion;
+			}
+                        $af=$aa[$criterion]['value'];
+                        $bf=$ba[$criterion]['value'];
 			$namecmp = strcoll ($af,$bf) ;
 			if ($namecmp != 0) {
 				return $namecmp ;




More information about the Fusionforge-commits mailing list