summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-18 03:30:18 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-18 03:30:18 +0545
commit907e3ea727744dda4942c558cc03bc75e9c40ced (patch)
tree6b3334b9163af6fb96f5d8fb9613770c806a8e24 /src/usr/local/www/firewall_rules_edit.php
parentb00bbc0b56413690eab7e0314ab8725cf583af71 (diff)
downloadpfsense-907e3ea727744dda4942c558cc03bc75e9c40ced.zip
pfsense-907e3ea727744dda4942c558cc03bc75e9c40ced.tar.gz
Redmine #5994 Fix test for default source port fields
Fixes the problem reported by @jimp where the Advanced button for the source port fields would show "Hide Advanced" when creating a new rule from scratch. Now when creating a new rule, it starts off as "Display Advanced" (with the source port fields hidden.
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 777c832..21e719a 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -1925,7 +1925,8 @@ events.push(function() {
if ($('#proto').find(":selected").index() <= 2) {
hideClass('dstprtr', false);
hideInput('btnsrcadv', false);
- if (($('#srcbeginport').val() == "any") && ($('#srcendport').val() == "any")) {
+ if ((($('#srcbeginport').val() == "any") || ($('#srcbeginport').val() == "")) &&
+ (($('#srcendport').val() == "any") || ($('#srcendport').val() == ""))) {
srcportsvisible = false;
} else {
srcportsvisible = true;
OpenPOWER on IntegriCloud