From: Steven Barth Date: Tue, 19 Aug 2008 17:51:13 +0000 (+0000) Subject: modules/admin-full: Correctly unload firewall config in network configuration page X-Git-Tag: 0.8.0~345 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6805eabaaa5698fd42784da87965b62bb88d91a2;p=oweals%2Fluci.git modules/admin-full: Correctly unload firewall config in network configuration page --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua index 1a41ed271..716631232 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua @@ -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"))