Commit 163c9d1c authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

dhcp server / static leases, issue with loading settings into form. closes...

dhcp server / static leases, issue with loading settings into form. closes https://github.com/opnsense/core/issues/1568

(cherry picked from commit 8e0583e9)
parent 28f07cbc
......@@ -52,8 +52,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// read form data
$pconfig = array();
$config_copy_fieldnames = array('mac', 'cid', 'hostname', 'filename', 'rootpath', 'descr', 'arp_table_static_entry',
'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'wins1', 'wins2', 'dns1', 'dns2', 'ddnsdomain',
'ddnsdomainprimary', 'ddnsdomainkeyname', 'ddnsdomainkey', 'ddnsupdate', 'ntp1', 'ntp2', 'tftp', 'ipaddr',
'defaultleasetime', 'maxleasetime', 'gateway', 'domain', 'domainsearchlist', 'winsserver', 'dnsserver', 'ddnsdomain',
'ddnsdomainprimary', 'ddnsdomainkeyname', 'ddnsdomainkey', 'ddnsupdate', 'ntpserver', 'tftp', 'ipaddr',
'winsserver', 'dnsserver');
foreach ($config_copy_fieldnames as $fieldname) {
if (isset($if) && isset($id) && isset($config['dhcpd'][$if]['staticmap'][$id][$fieldname])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment