[Fusionforge-commits] r6910 - in trunk: . gforge/common/tracker gforge/www/tracker

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 4 10:08:41 CET 2009


Author: lolando
Date: 2009-02-04 10:08:40 +0100 (Wed, 04 Feb 2009)
New Revision: 6910

Modified:
   trunk/
   trunk/gforge/common/tracker/ArtifactFactory.class.php
   trunk/gforge/www/tracker/browse.php
Log:
Merged from 4.7: Fixed two more PHP notices (tracker browsing)


Property changes on: trunk
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/Branch_4_7:6879,6881,6884,6897,6899,6902,6904,6906

   + /branches/Branch_4_7:6879,6881,6884,6897,6899,6902,6904,6906,6909


Modified: trunk/gforge/common/tracker/ArtifactFactory.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactFactory.class.php	2009-02-04 08:59:37 UTC (rev 6909)
+++ trunk/gforge/common/tracker/ArtifactFactory.class.php	2009-02-04 09:08:40 UTC (rev 6910)
@@ -152,6 +152,7 @@
 				//default to open
 				$_assigned_to=0;
 				$_status=1;
+				$_changed=0;
 			}
 		}
 
@@ -206,6 +207,7 @@
 					$u->deletePreference('art_query'.$this->ArtifactType->getID());
 				}
 			}
+			$_changed=0;
 		}
 
 		$this->sort=$_sort_ord;

Modified: trunk/gforge/www/tracker/browse.php
===================================================================
--- trunk/gforge/www/tracker/browse.php	2009-02-04 08:59:37 UTC (rev 6909)
+++ trunk/gforge/www/tracker/browse.php	2009-02-04 09:08:40 UTC (rev 6910)
@@ -61,18 +61,20 @@
 $set = @getStringFromRequest('set',$set);
 $_assigned_to = @getStringFromRequest('_assigned_to',$_assigned_to);
 $_status = @getStringFromRequest('_status',$_status);
+$_extra_fields = array() ;
+$aux_extra_fields = array() ;
 if ($set == 'custom') {
 	//
 	//may be past in next/prev url
 	//
-	if ($_GET['extra_fields'][$ath->getCustomStatusField()]) {
+	if (isset($_GET['extra_fields'][$ath->getCustomStatusField()])) {
 		$_extra_fields[$ath->getCustomStatusField()] = $_GET['extra_fields'][$ath->getCustomStatusField()];
-	} else {
+	} elseif (isset($_POST['extra_fields'][$ath->getCustomStatusField()])) {
 		$_extra_fields[$ath->getCustomStatusField()] = $_POST['extra_fields'][$ath->getCustomStatusField()];
 	}
 }
 
-if (@is_array($_extra_fields)){
+if (is_array($_extra_fields)){
 	$keys=array_keys($_extra_fields);
 	foreach ($keys as $key) {
 		if ($_extra_fields[$key] != 'Array') {




More information about the Fusionforge-commits mailing list