From 5313aea509c7e799cc406e7e9566e8332b3cad00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 9 Feb 2010 10:11:31 +0000 Subject: Ticket #303. Correctly retain the interface in case or validation errors. --- usr/local/www/system_gateways_edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local/www/system_gateways_edit.php') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 54691ca..7dfb6aa 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -204,8 +204,11 @@ if ($_POST) { header("Location: system_gateways.php"); exit; - } else + } else { $pconfig = $_POST; + if (empty($_POST['friendlyiface'])) + $pconfig['friendlyiface'] = $_POST['interface']; + } } -- cgit v1.1