summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-18 21:53:05 +0000
committerErmal <eri@pfsense.org>2010-08-18 21:53:05 +0000
commitc60e4f61012753efada5efcc61f9db23fa1c8084 (patch)
tree5c87d73102d770c794a2622649608f03b1c3ccee /usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
parent89c95943a2db96a4a251d6289b7ae545b0478dc7 (diff)
downloadpfsense-c60e4f61012753efada5efcc61f9db23fa1c8084.zip
pfsense-c60e4f61012753efada5efcc61f9db23fa1c8084.tar.gz
Also do the wizard optimizations and user-friendliness to the traffic_shaper_wizard_multi_all.xml
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc')
-rwxr-xr-xusr/local/www/wizards/traffic_shaper_wizard_dedicated.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index efd56a7..b264949 100755
--- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -265,8 +265,8 @@ function step2_stepsubmitphpaction() {
}
$upbw = $_POST["conn{$i}upload"];
$downbw = $_POST["conn{$i}download"];
- if ($upbw == 0 || $downbw = 0) {
- $savemsg = gettext("You cannot specify 0 bandwidth!");
+ if ($upbw < 1 || $downbw < 1) {
+ $savemsg = gettext("You cannot specify bandwidth smaller than 1!");
$stepid--;
return;
}
@@ -332,6 +332,7 @@ function step3_stepbeforeformdisplay() {
$field['type'] = "listtopic";
$voipfields[] = $field;
+ $field = array();
$field['name'] = "Provider";
$enablefields[] = "Provider";
$field['type'] = "select";
OpenPOWER on IntegriCloud