From 7e484b857b9584f7cbc5083845ef9e81062e9f4f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 11 Jul 2011 13:11:12 +0000 Subject: [PATCH] applications/luci-firewall: properly handle zone removal --- applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua index baced4a88..79604c263 100644 --- a/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua +++ b/applications/luci-firewall/luasrc/model/cbi/luci_fw/zones.lua @@ -82,6 +82,10 @@ function s.create(self) end end +function s.remove(self, section) + return fw:del_zone(section) +end + info = s:option(DummyValue, "_info", translate("Zone ⇒ Forwardings")) info.template = "cbi/firewall_zoneforwards" function info.cfgvalue(self, section) -- 2.11.0