diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-06-01 16:52:45 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-01 16:53:19 -0500 |
commit | e488da267defbdb80572141b92ce2dd33375d249 (patch) | |
tree | c09c70451e8c5988bc9815726eb5749b7d4edf9c /src/usr/local/www | |
parent | be0ab085587523b9e25ed403dac98ad906b2374e (diff) | |
download | pfsense-e488da267defbdb80572141b92ce2dd33375d249.zip pfsense-e488da267defbdb80572141b92ce2dd33375d249.tar.gz |
Don't override type so changing it is possible. Ticket #6439
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/interfaces_ppps_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_ppps_edit.php b/src/usr/local/www/interfaces_ppps_edit.php index 70028d8..b36c40a 100644 --- a/src/usr/local/www/interfaces_ppps_edit.php +++ b/src/usr/local/www/interfaces_ppps_edit.php @@ -97,7 +97,9 @@ if (isset($_POST['id']) && is_numericint($_POST['id'])) { if (isset($id) && $a_ppps[$id]) { $pconfig['ptpid'] = $a_ppps[$id]['ptpid']; - $pconfig['type'] = $a_ppps[$id]['type']; + if (!isset($_REQUEST['type'])) { + $pconfig['type'] = $a_ppps[$id]['type']; + } $pconfig['interfaces'] = explode(",", $a_ppps[$id]['ports']); $pconfig['username'] = $a_ppps[$id]['username']; $pconfig['password'] = base64_decode($a_ppps[$id]['password']); |