Rules should not be removed / created from the detailed rule configuration
authorSteven Barth <steven@midlink.org>
Sat, 4 Oct 2008 17:56:02 +0000 (17:56 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 4 Oct 2008 17:56:02 +0000 (17:56 +0000)
applications/luci-fw/luasrc/model/cbi/luci_fw/rrule.lua
applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua

index bf826616acc1701f146b830f70fe0e04e3da02ac..1610698c4b01085eb64ae017ec184ebe5e4160ac 100644 (file)
@@ -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 = ""
index fa5b44e79eb44ddcdfc0b0a7136b2f18acb76771..f860bff3e605fdfc9501ec66bf67ddf77ad9d2c2 100644 (file)
@@ -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 = ""