summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-10-27 10:05:12 +0545
committerPhil Davis <phil.davis@inf.org>2015-10-27 10:05:12 +0545
commit62eed5f51c4956687899f68ff496b3f887826e62 (patch)
treec04975de9b10086b725855655ed4df8dbe213b85 /src/usr/local/www/firewall_nat_out_edit.php
parentfc8b158f86c6324a22661f86e06e1734908a34de (diff)
downloadpfsense-62eed5f51c4956687899f68ff496b3f887826e62.zip
pfsense-62eed5f51c4956687899f68ff496b3f887826e62.tar.gz
Fix source type on edit of NAT outbound rule
Redmine #5347 part (1)
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index afb0648..5147f64 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -505,7 +505,7 @@ $group = new Form_Group('Source');
$group->add(new Form_Select(
'source_type',
null,
- $pconfig['source_type'],
+ (($pconfig['source'] == "any") || ($pconfig['source'] == "(self)")) ? $pconfig['source'] : "network",
array('any' => 'Any', '(self)' => 'This Firewall (self)', 'network' => 'Network')
))->setHelp('Type')->setWidth('3');
OpenPOWER on IntegriCloud