[Fusionforge-commits] r12141 - branches/Branch_5_1/src/www/tracker

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Feb 3 15:53:03 CET 2011


Author: lolando
Date: 2011-02-03 15:53:03 +0100 (Thu, 03 Feb 2011)
New Revision: 12141

Modified:
   branches/Branch_5_1/src/www/tracker/browse.php
Log:
Use getArrayFromRequest rather than _GET/_POST

Modified: branches/Branch_5_1/src/www/tracker/browse.php
===================================================================
--- branches/Branch_5_1/src/www/tracker/browse.php	2011-02-03 14:39:59 UTC (rev 12140)
+++ branches/Branch_5_1/src/www/tracker/browse.php	2011-02-03 14:53:03 UTC (rev 12141)
@@ -105,14 +105,13 @@
 $_status = getIntFromRequest('_status');
 $_extra_fields = array() ;
 $aux_extra_fields = array() ;
+
 if ($set == 'custom') {
-	//
-	//may be past in next/prev url
-	//
-	if (isset($_GET['extra_fields'][$ath->getCustomStatusField()])) {
-		$_extra_fields[$ath->getCustomStatusField()] = $_GET['extra_fields'][$ath->getCustomStatusField()];
-	} elseif (isset($_POST['extra_fields'][$ath->getCustomStatusField()])) {
-		$_extra_fields[$ath->getCustomStatusField()] = $_POST['extra_fields'][$ath->getCustomStatusField()];
+	/* may be past in next/prev url */
+	$i = $ath->getCustomStatusField();
+	$tmp_extra_fields = getArrayFromRequest('extra_fields');
+	if (isset($tmp_extra_fields[$i])) {
+		$_extra_fields[$i] = $tmp_extra_fields[$i];
 	}
 }
 




More information about the Fusionforge-commits mailing list