From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default Date: Wed, 19 May 2021 16:52:13 +0200 Message-ID: <20210519145213.3625-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6866271945479281716==" List-Id: --===============6866271945479281716== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - 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 --- 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'} =3D 'on'; -} + $dhcpsettings{'ADVOPT_ENABLED'} =3D 'on'; + } =20 &Header::openpage($Lang::tr{'dhcp configuration'}, 1, ''); &Header::openbigbox('100%', 'left', '', $errormessage); --=20 2.31.1 --===============6866271945479281716==--