summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-18 17:55:34 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-18 17:55:34 +0000
commite90db2b49d76978a5bc1c0639c46cf543993d69a (patch)
tree559c658c67a17f0f8e77a3c638cc6a7909776939 /usr/local/www/system_gateways_edit.php
parent9c10b00f3eb22f45e2fb704ca9f1786942d69ad8 (diff)
downloadpfsense-e90db2b49d76978a5bc1c0639c46cf543993d69a.zip
pfsense-e90db2b49d76978a5bc1c0639c46cf543993d69a.tar.gz
Revert "Ticket #303. Use the config item when editing gateways so all fields are correctly processed."
This reverts commit 9c10b00f3eb22f45e2fb704ca9f1786942d69ad8.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index c698893..d42746e 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -63,18 +63,17 @@ if (isset($_GET['dup'])) {
}
if (isset($id) && $a_gateways[$id]) {
- $pconfig['name'] = $a_gateway_item[$id]['name'];
- $pconfig['interface'] = $a_gateway_item[$id]['interface'];
- $pconfig['gateway'] = $a_gateway_item[$id]['gateway'];
- $pconfig['defaultgw'] = $a_gateway_item[$id]['defaultgw'];
-
+ $pconfig['name'] = $a_gateways[$id]['name'];
+ $pconfig['interface'] = $a_gateways[$id]['interface'];
+ $pconfig['gateway'] = $a_gateways[$id]['gateway'];
+ $pconfig['defaultgw'] = $a_gateways[$id]['defaultgw'];
if($a_gateway_item[$id]['monitor'] <> "") {
$pconfig['monitor'] = $a_gateway_item[$id]['monitor'];
} else {
$pconfig['monitor'] == "";
}
- $pconfig['descr'] = $a_gateway_item[$id]['descr'];
- $pconfig['attribute'] = $a_gateway_item[$id]['attribute'];
+ $pconfig['descr'] = $a_gateways[$id]['descr'];
+ $pconfig['attribute'] = $a_gateways[$id]['attribute'];
}
if (isset($_GET['dup'])) {
OpenPOWER on IntegriCloud