applications/luci-firewall: properly handle zone removal

This commit is contained in:
Jo-Philipp Wich 2011-07-11 13:11:12 +00:00
parent 1a221ddfb9
commit 7e484b857b

View file

@ -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)