From 7bed82221ae8c4d9beffc05d35952d212ea7001e Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 30 Apr 2010 20:22:58 +0000 Subject: Ticket #506. Correctly save dynamic gateways extra parameters. --- usr/local/www/system_gateways_edit.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 60b8700..689397b 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -167,10 +167,15 @@ if ($_POST) { /* rebuild the array with the manual entries only */ $gateway = array(); - $gateway['interface'] = $_POST['interface']; + if ($_POST['attribute'] == "system") { + $gateway['interface'] = $pconfig['friendlyiface']; + $gateway['gateway'] = "dynamic"; + } else { + $gateway['interface'] = $_POST['interface']; + $gateway['gateway'] = $_POST['gateway']; + } $gateway['name'] = $_POST['name']; $gateway['weight'] = $_POST['weight']; - $gateway['gateway'] = $_POST['gateway']; $gateway['descr'] = $_POST['descr']; if(is_ipaddr($_POST['monitor'])) { $gateway['monitor'] = $_POST['monitor']; -- cgit v1.1