modules/admin-full: Correctly unload firewall config in network configuration page
[project/luci.git] / 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"))