diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 10:02:23 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-17 10:02:23 +0000 |
commit | c3b347f199b3854e161e533a9191fdf2c7aaae19 (patch) | |
tree | b5c5d666d524c268adcf5214963f32a448da9bfb /usr/local/www/system_gateways_edit.php | |
parent | e93949e50d180ce23eb49759cb24c2725457b6b3 (diff) | |
download | pfsense-c3b347f199b3854e161e533a9191fdf2c7aaae19.zip pfsense-c3b347f199b3854e161e533a9191fdf2c7aaae19.tar.gz |
Allow duplication of system gateways for easier adding and less typing.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
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'])) |