Project

General

Profile

« Previous | Next » 

Revision e840fc8c

Added by Chris Buechler almost 11 years ago

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

View differences:

usr/local/www/interfaces.php
914 914
				unset($a_ppps[$pppid]['apn']);
915 915
				unset($a_ppps[$pppid]['phone']);
916 916
				unset($a_ppps[$pppid]['provider']);
917
				unset($a_ppps[$pppid]['ondemand']);
917 918
			}
918
			if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) {
919
			if (in_array($wancfg['ipaddr'], array("pppoe", "pptp", "l2tp"))) {
919 920
				unset($a_ppps[$pppid]['localip']);
920 921
				unset($a_ppps[$pppid]['subnet']);
921 922
				unset($a_ppps[$pppid]['gateway']);
......
923 924
			if ($wancfg['ipaddr'] != 'pppoe')
924 925
				unset($a_ppps[$pppid]['pppoe-reset-type']);
925 926
			if ($wancfg['type'] != $_POST['type']) {
926
				unset($a_ppps[$pppid]['ondemand']);
927 927
				unset($a_ppps[$pppid]['idletimeout']);
928 928
			}
929 929
		}

Also available in: Unified diff