From: Christian Korber Date: Fri, 22 May 2026 10:03:46 +0000 (+0200) Subject: luci-app-firewall: keep enabled on cloning X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0c98cce386279b4e48bdca7f47603b06b3dc4f38;p=openwrt-luci.git luci-app-firewall: keep enabled on cloning In order to keep option enabled o.rmempty is set to false. Signed-off-by: Christian Korber --- 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');