diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-31 10:45:31 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-31 10:45:31 +0100 |
commit | ee65c642df6466ed59c332d448a4804690ce55c1 (patch) | |
tree | b3d59c9d2595d5a20eba0e324c5b301cf44933db /usr | |
parent | 7790dacceddfccbbd8c9c5ca13235a313b81d80f (diff) | |
download | pfsense-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.inc | 4 | ||||
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 4 |
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"]; |