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 <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Adolf Belka
2021-05-19 16:52:13 +02:00
committed by Michael Tremer
parent 6622925b36
commit 6fcd779c05

View File

@@ -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);