From: Jo-Philipp Wich Date: Mon, 11 Jul 2011 13:11:12 +0000 (+0000) Subject: applications/luci-firewall: properly handle zone removal X-Git-Tag: 0.11.0~1959 X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=7e484b857b9584f7cbc5083845ef9e81062e9f4f;p=project%2Fluci.git applications/luci-firewall: properly handle zone removal --- 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)