From 6805eabaaa5698fd42784da87965b62bb88d91a2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 19 Aug 2008 17:51:13 +0000 Subject: [PATCH 1/1] modules/admin-full: Correctly unload firewall config in network configuration page --- modules/admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 2 ++ 1 file changed, 2 insertions(+) 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")) -- 2.11.0