From c3b347f199b3854e161e533a9191fdf2c7aaae19 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Mon, 17 Nov 2008 10:02:23 +0000 Subject: Allow duplication of system gateways for easier adding and less typing. --- usr/local/www/system_gateways_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 0bd623a..bc98a08 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -56,7 +56,9 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['defaultgw'] = $a_gateways[$id]['defaultgw']; $pconfig['monitor'] = $a_gateways[$id]['monitor']; $pconfig['descr'] = $a_gateways[$id]['descr']; - $pconfig['attribute'] = $a_gateways[$id]['attribute']; + if (!isset($_GET['dup'])) { + $pconfig['attribute'] = $a_gateways[$id]['attribute']; + } } if (isset($_GET['dup'])) -- cgit v1.1