[Fusionforge-commits] r6909 - in branches/Branch_4_7/gforge: common/tracker www/tracker
Roland Mas
lolando at libremir.placard.fr.eu.org
Wed Feb 4 09:59:37 CET 2009
Author: lolando
Date: 2009-02-04 09:59:37 +0100 (Wed, 04 Feb 2009)
New Revision: 6909
Modified:
branches/Branch_4_7/gforge/common/tracker/ArtifactFactory.class.php
branches/Branch_4_7/gforge/www/tracker/browse.php
Log:
Fixed two more PHP notices (tracker browsing)
Modified: branches/Branch_4_7/gforge/common/tracker/ArtifactFactory.class.php
===================================================================
--- branches/Branch_4_7/gforge/common/tracker/ArtifactFactory.class.php 2009-02-03 21:34:43 UTC (rev 6908)
+++ branches/Branch_4_7/gforge/common/tracker/ArtifactFactory.class.php 2009-02-04 08:59:37 UTC (rev 6909)
@@ -154,6 +154,7 @@
//default to open
$_assigned_to=0;
$_status=1;
+ $_changed=0;
}
}
@@ -208,6 +209,7 @@
$u->deletePreference('art_query'.$this->ArtifactType->getID());
}
}
+ $_changed=0;
}
$this->sort=$_sort_ord;
Modified: branches/Branch_4_7/gforge/www/tracker/browse.php
===================================================================
--- branches/Branch_4_7/gforge/www/tracker/browse.php 2009-02-03 21:34:43 UTC (rev 6908)
+++ branches/Branch_4_7/gforge/www/tracker/browse.php 2009-02-04 08:59:37 UTC (rev 6909)
@@ -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