summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-21 11:51:51 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-21 11:51:51 -0400
commit19fe55b3bff7d001835cfa6e9cd788ec4c79afe7 (patch)
tree6727b488cdbce983c3ea3cd1ec7fd5ff66246d51 /src/usr/local/www/firewall_nat_edit.php
parent7673b24c875108b43d279217aebb3d311751ad28 (diff)
downloadpfsense-19fe55b3bff7d001835cfa6e9cd788ec4c79afe7.zip
pfsense-19fe55b3bff7d001835cfa6e9cd788ec4c79afe7.tar.gz
Fixed #5013
Incorrect element name used
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index 8a5c2bb..9d7578b 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -379,6 +379,7 @@ if ($_POST) {
}
if (!$input_errors) {
+
$natent = array();
$natent['disabled'] = isset($_POST['disabled']) ? true:false;
@@ -453,6 +454,7 @@ if ($_POST) {
/* auto-generate a matching firewall rule */
$filterent = array();
unset($filterentid);
+
// If a rule already exists, load it
if (!empty($natent['associated-rule-id'])) {
$filterentid = get_id($natent['associated-rule-id'], $config['filter']['rule']);
@@ -904,7 +906,7 @@ if (isset($id) && $a_nat[$id] && (!isset($_GET['dup']) || !is_numericint($_GET['
))->setHelp($hlpstr);
} else {
$section->addInput(new Form_Select(
- 'associated-rule-id',
+ 'filter-rule-association',
'Filter rule association',
'add-associated',
array(
OpenPOWER on IntegriCloud