From b9110f3fa34c8f69c9dc247ca20c75fe3ff954e0 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 4 Oct 2008 17:56:19 +0000 Subject: [PATCH] Rules should not be removed / created from the detailed rule configuration --- applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua | 1 + applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua index bf826616ac..1610698c4b 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua @@ -19,6 +19,7 @@ m = Map("firewall", translate("fw_redirect"), translate("fw_redirect_desc")) s = m:section(NamedSection, arg[1], "redirect", "") s.anonymous = true +s.addremove = false back = s:option(DummyValue, "_overview", translate("overview")) back.value = "" diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua index fa5b44e79e..f860bff3e6 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua @@ -16,6 +16,7 @@ m = Map("firewall", translate("firewall_rule"), translate("firewall_rule_desc")) s = m:section(NamedSection, arg[1], "rule", "") s.anonymous = true +s.addremove = false back = s:option(DummyValue, "_overview", translate("overview")) back.value = "" -- 2.30.2