From: Adolf Belka Date: Wed, 19 May 2021 14:52:13 +0000 (+0200) Subject: dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fcd779c053d9156b2a744da6090469188e36950;p=people%2Fstevee%2Fipfire-2.x.git dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default - Make the default that Additional DHCP options Enabled checkbox is checked when entering a new option. - For existing options the Enabled checkbox status is honoured. Fixes: #10400 Tested-by: Adolf Belka Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi index dd379dc47c..388c4d240e 100644 --- a/html/cgi-bin/dhcp.cgi +++ b/html/cgi-bin/dhcp.cgi @@ -535,7 +535,8 @@ if ($dhcpsettings{'ACTION'} eq '' ) { # First launch from GUI } } $dhcpsettings{'FIX_ENABLED'} = 'on'; -} + $dhcpsettings{'ADVOPT_ENABLED'} = 'on'; + } &Header::openpage($Lang::tr{'dhcp configuration'}, 1, ''); &Header::openbigbox('100%', 'left', '', $errormessage);