diff options
author | Phil Davis <phil.davis@inf.org> | 2016-03-18 03:30:18 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-03-18 03:30:18 +0545 |
commit | 907e3ea727744dda4942c558cc03bc75e9c40ced (patch) | |
tree | 6b3334b9163af6fb96f5d8fb9613770c806a8e24 /src/usr | |
parent | b00bbc0b56413690eab7e0314ab8725cf583af71 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 3 |
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; |