summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-31 10:45:31 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-31 10:45:31 +0100
commitee65c642df6466ed59c332d448a4804690ce55c1 (patch)
treeb3d59c9d2595d5a20eba0e324c5b301cf44933db /usr
parent7790dacceddfccbbd8c9c5ca13235a313b81d80f (diff)
downloadpfsense-ee65c642df6466ed59c332d448a4804690ce55c1.zip
pfsense-ee65c642df6466ed59c332d448a4804690ce55c1.tar.gz
Fixes #4333 Unset previous defined values before using the new ones
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc4
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc4
2 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index 82a2b82..7a4104e 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -551,6 +551,10 @@ function step3_stepsubmitphpaction() {
}
}
+ /* This is necessary since the wizard expects pecnefined fields. */
+ unset($config['ezshaper']['step3']);
+ $config['ezshaper']['step3'] = array();
+
for ($i = 0; $i < $steps; $i++) {
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"];
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"];
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
index c3e0e28..8f7fa22 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
@@ -599,6 +599,10 @@ function step3_stepsubmitphpaction() {
}
}
+ /* This is necessary since the wizard expects pecnefined fields. */
+ unset($config['ezshaper']['step3']);
+ $config['ezshaper']['step3'] = array();
+
for ($i = 0; $i < $localint; $i++) {
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"];
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"];
OpenPOWER on IntegriCloud