Allow reassignment from PPP types to DHCP. From testing, it appears to work OK, this input validation appears to be outdated.

If there is some edge case that this catches, perhaps it needs to be a more specific test.
This commit is contained in:
jim-p 2015-03-09 10:35:26 -04:00
parent bf4ea211dd
commit 36dbc14aaa

View File

@ -523,10 +523,6 @@ if ($_POST['apply']) {
}
}
break;
case "dhcp":
if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp")))
$input_errors[] = sprintf(gettext("You have to reassign the interface to be able to configure as %s."),$_POST['type']);
break;
case "ppp":
$reqdfields = explode(" ", "port phone");
$reqdfieldsn = array(gettext("Modem Port"),gettext("Phone Number"));