diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-21 11:51:51 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-21 11:51:51 -0400 |
commit | 19fe55b3bff7d001835cfa6e9cd788ec4c79afe7 (patch) | |
tree | 6727b488cdbce983c3ea3cd1ec7fd5ff66246d51 /src/usr/local/www/firewall_nat_edit.php | |
parent | 7673b24c875108b43d279217aebb3d311751ad28 (diff) | |
download | pfsense-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.php | 4 |
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( |