diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-07 12:21:50 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-07 12:22:29 -0400 |
commit | 654e800764e365d5f0bf5cede7fc9e2862b293fa (patch) | |
tree | 6e4d61b1d24063ffb6d01f48ea5fc907f09667fb /src/usr | |
parent | 8a907ba797da6534ba39992e579548d6d81939b6 (diff) | |
download | pfsense-654e800764e365d5f0bf5cede7fc9e2862b293fa.zip pfsense-654e800764e365d5f0bf5cede7fc9e2862b293fa.tar.gz |
Fixed #5283
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 3d32ad7..5fb11ad 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -1230,6 +1230,7 @@ $section->addInput(new Form_Select( $form->add($section); // Source and destination share a lot of logic. Loop over the two +// ToDo: Unfortunately they seem to differ more than they share. This needs to be unrolled foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { $section = new Form_Section($name); @@ -1261,6 +1262,11 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) { 'single' => 'Single host or alias', 'network' => 'Network', ); + + if($type == 'dst') { + $ruleValues['self'] = "This firewall (self)"; + } + if (isset($a_filter[$id]['floating']) || $if == "FloatingRules") $ruleValues['(self)'] = 'This Firewall (self)'; if (have_ruleint_access("pppoe")) |