modules/admin-full: Correctly unload firewall config in network configuration page
authorSteven Barth <steven@midlink.org>
Tue, 19 Aug 2008 17:51:13 +0000 (17:51 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 19 Aug 2008 17:51:13 +0000 (17:51 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua

index 1a41ed271e0fdf680b993210f0df143c1767886e..716631232b60c03ce7cb1d75eade49e0327a243c 100644 (file)
@@ -49,6 +49,7 @@ if zones then
                fwzone.rmempty = true
                fwzone:value("", "- " .. translate("none") .. " -")
                fwzone:value(arg[1])
+               luci.model.uci.load_config("firewall")
                luci.model.uci.foreach("firewall", "zone",
                        function (section)
                                fwzone:value(section.name)
@@ -79,6 +80,7 @@ if zones then
                fwzone.value = table.concat(zones, ", ")
        end
        fwzone.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "zones")
+       luci.model.uci.unload("firewall")
 end
 
 ipaddr = s:option(Value, "ipaddr", translate("ipaddress"))