From 55ed5c897855d6597bbbd8e8ff4a3a4de285b73f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 5 Jan 2009 21:13:56 +0000 Subject: [PATCH] Fix disabling of WiFi closes #22 --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 1 + modules/admin-mini/luasrc/model/cbi/mini/wifi.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index dd3e5eda3..f436689a6 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -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" diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index 8b623090b..f3eed8e2c 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -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" -- 2.25.1