From 0c98cce386279b4e48bdca7f47603b06b3dc4f38 Mon Sep 17 00:00:00 2001 From: Christian Korber Date: Fri, 22 May 2026 12:03:46 +0200 Subject: [PATCH] luci-app-firewall: keep enabled on cloning In order to keep option enabled o.rmempty is set to false. Signed-off-by: Christian Korber --- .../htdocs/luci-static/resources/view/firewall/rules.js | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js index 0a13bf24ac..3123385224 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js @@ -225,6 +225,7 @@ return view.extend({ o = s.option(form.Flag, 'enabled', _('Enable')); o.modalonly = false; o.default = o.enabled; + o.rmempty = false; o.editable = true; o.tooltip = function(section_id) { const weekdays = uci.get('firewall', section_id, 'weekdays');