summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-28 15:52:59 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-28 15:54:10 -0500
commit7d8552fc50e0ea445fd59067f67b95557003f687 (patch)
tree14c47aff8d980cea61c92be5ad092d8a5eb5da07 /src/usr/local/www/firewall_nat_edit.php
parentab225849ced6756452b0244abb9d42db4830b68f (diff)
downloadpfsense-7d8552fc50e0ea445fd59067f67b95557003f687.zip
pfsense-7d8552fc50e0ea445fd59067f67b95557003f687.tar.gz
Separator bar stuff moved to pfSenseHelpers.js so that it can be more easily applied to other pages
Separators added to firewall_nat.php
Diffstat (limited to 'src/usr/local/www/firewall_nat_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_edit.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_nat_edit.php b/src/usr/local/www/firewall_nat_edit.php
index 65316f0..c23c9d7 100644
--- a/src/usr/local/www/firewall_nat_edit.php
+++ b/src/usr/local/www/firewall_nat_edit.php
@@ -514,6 +514,14 @@ if ($_POST) {
$natent['created'] = make_config_revision_entry();
if (is_numeric($after)) {
array_splice($a_nat, $after+1, 0, array($natent));
+
+ // Update the separators
+ $a_separators = &$config['nat']['separator'];
+
+ for ($idx=0; isset($a_separators['sep' . $idx]); $idx++ ) {
+ $seprow = substr($a_separators['sep' . $idx]['row']['0'], 2);
+ $a_separators['sep' . $idx]['row']['0'] = 'fr' . ($seprow + 1);
+ }
} else {
$a_nat[] = $natent;
}
OpenPOWER on IntegriCloud