Fix disabling of WiFi
authorSteven Barth <steven@midlink.org>
Mon, 5 Jan 2009 21:14:33 +0000 (21:14 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 5 Jan 2009 21:14:33 +0000 (21:14 +0000)
closes #22

modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
modules/admin-mini/luasrc/model/cbi/mini/wifi.lua

index dd3e5eda3feefadd46e598b9c97f96f1c9949825..f436689a6deb52b358ff4308ce564ed9fc3f9311 100644 (file)
@@ -27,6 +27,7 @@ back.titleref = luci.dispatcher.build_url("admin", "network", "wireless")
 en = s:option(Flag, "disabled", translate("enable"))
 en.enabled = "0"
 en.disabled = "1"
+en.rmempty = false
 
 function en.cfgvalue(self, section)
        return Flag.cfgvalue(self, section) or "0"
index 8b623090b781063ab818145db349eefee37935b1..f3eed8e2cbc4f9a3398066943dc451d9b24a9a41 100644 (file)
@@ -131,6 +131,7 @@ s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
 s.addremove = false
 
 en = s:option(Flag, "disabled", translate("enable"))
+en.rmempty = false
 en.enabled = "0"
 en.disabled = "1"