diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-22 13:23:07 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-22 13:24:51 -0600 |
commit | e840fc8cd09643c277259a8b4e07612eef06373f (patch) | |
tree | ac4339b11ab054d74051bdb7cb02800bc477159f /usr | |
parent | 15fbb5ecf35ac794b4bf357c1cd821a1413cdaa9 (diff) | |
download | pfsense-e840fc8cd09643c277259a8b4e07612eef06373f.zip pfsense-e840fc8cd09643c277259a8b4e07612eef06373f.tar.gz |
Don't unset these items for PPP configurations as they're not configured here and doing so loses settings configured in interfaces_ppps_edit.php. Ticket #3727
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 224f8d2..c044ea7 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -914,8 +914,9 @@ if ($_POST['apply']) { unset($a_ppps[$pppid]['apn']); unset($a_ppps[$pppid]['phone']); unset($a_ppps[$pppid]['provider']); + unset($a_ppps[$pppid]['ondemand']); } - if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) { + if (in_array($wancfg['ipaddr'], array("pppoe", "pptp", "l2tp"))) { unset($a_ppps[$pppid]['localip']); unset($a_ppps[$pppid]['subnet']); unset($a_ppps[$pppid]['gateway']); @@ -923,7 +924,6 @@ if ($_POST['apply']) { if ($wancfg['ipaddr'] != 'pppoe') unset($a_ppps[$pppid]['pppoe-reset-type']); if ($wancfg['type'] != $_POST['type']) { - unset($a_ppps[$pppid]['ondemand']); unset($a_ppps[$pppid]['idletimeout']); } } |