libs/cbi: Fixed CBI handling of "Save & Apply"

This commit is contained in:
Steven Barth
2008-07-30 19:01:07 +00:00
parent 8c3ee6f9b7
commit 5c7ab64306
2 changed files with 29 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ You may obtain a copy of the License at
$Id$
]]--
m = Map("wireless", translate("wifi"), translate("a_w_devices1"))
m:chain("network")
s = m:section(TypedSection, "wifi-device", translate("devices"))
@@ -67,8 +68,6 @@ function mode.write(self, section, value)
luci.model.uci.set("network", "wan", "_ifname", oldif)
end
luci.model.uci.set("network", "wan", "ifname", " ")
luci.model.uci.save("network")
luci.model.uci.unload("network")
self.map:set(section, "network", "wan")
else