- 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(a)ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka(a)ipfire.org>
---
html/cgi-bin/dhcp.cgi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi
index dd379dc47..388c4d240 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);
--
2.31.1