From patchwork Wed May 19 14:52:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 4345 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FlbSX1L3Jz3wbb for ; Wed, 19 May 2021 14:52:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FlbSV0hcLz2L1; Wed, 19 May 2021 14:52:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FlbST6CKQz2xcS; Wed, 19 May 2021 14:52:25 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FlbSS0yRXz2xJj for ; Wed, 19 May 2021 14:52:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4FlbSR30hQz1Fg; Wed, 19 May 2021 14:52:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1621435943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=u7+3feVrXKfv5zb7CCexmSNs264PHTxhl27bnHjYpOg=; b=65l2+LXxXs+X9qeZYXw0UCjCjr6hs8j+U79SS84JTl145ALjLPwMkjtoWXrVpjeBVhX5r0 tubwUcrNqbKHgZAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1621435943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=u7+3feVrXKfv5zb7CCexmSNs264PHTxhl27bnHjYpOg=; b=g+qoIU3JiuVV/5U7es2wUhxRYUVqpKGeBm/BwXvuvRD+vZZ6urKqpm1ga92dhDrvTQjPTq p4MC0RDRX+IJhVy4pVu2jE0TK77AzHWR5ITSzgtcHBAec4tu2L+3t5gdMzEjbX04f8ooiW +WyhW0+dN02XD9Ju9h7o/M7YzUE2TIiZe0vLutPEf/Qa1UJGj5LGSmMmYbIqiuxZL714QK nlGimSXz3j7TlsFcxyI4RNtvc9pely+mukM4pO9BrU3t1vo7sdszRAzm17IdCHB8bC+Prp s+rWRHTBRy0A1ZuF6koIe32Tjhpyi7frqANHNEXca0ZC7MHF9Sa0+dawhjyhvw== 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - 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'} = 'on'; -} + $dhcpsettings{'ADVOPT_ENABLED'} = 'on'; + } &Header::openpage($Lang::tr{'dhcp configuration'}, 1, ''); &Header::openbigbox('100%', 'left', '', $errormessage);