summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
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/local/www/wizards/traffic_shaper_wizard_dedicated.inc
parent7790dacceddfccbbd8c9c5ca13235a313b81d80f (diff)
downloadpfsense-ee65c642df6466ed59c332d448a4804690ce55c1.zip
pfsense-ee65c642df6466ed59c332d448a4804690ce55c1.tar.gz
Fixes #4333 Unset previous defined values before using the new ones
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc4
1 files changed, 4 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"];
OpenPOWER on IntegriCloud