]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 19 May 2021 14:52:13 +0000 (16:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 May 2021 09:45:20 +0000 (09:45 +0000)
- 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>
html/cgi-bin/dhcp.cgi

index dd379dc47caa0f79fa159e7cb6870405e20e1d85..388c4d240eeb507696c20a4b45b2a731386e5607 100644 (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);