applications/luci-upnp: fix enable checkbox of upnp service
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 28 Jan 2009 18:25:11 +0000 (18:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 28 Jan 2009 18:25:11 +0000 (18:25 +0000)
applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua
applications/luci-upnp/luasrc/model/cbi/upnp/upnpmini.lua

index 8d5a592b116922df328043ca57865db849851e82..a485081297158d500c403469b0607a7cbd2627d4 100644 (file)
@@ -16,6 +16,8 @@ m = Map("upnpd", translate("upnpd"), translate("upnpd_desc"))
 
 s = m:section(NamedSection, "config", "upnpd", "")
 e = s:option(Flag, "enabled", translate("enable"))
+e.rmempty = false
+
 function e.write(self, section, value)
        local cmd = (value == "1") and "enable" or "disable"
        os.execute("/etc/init.d/miniupnpd " .. cmd)
index aaec3b0ccf6ae8e3bc64e4154985dee271ab71f4..8ad03a36a0ef97dc08514616381d6dd26ec375a6 100644 (file)
@@ -16,6 +16,8 @@ m = Map("upnpd", translate("upnpd"), translate("upnpd_desc"))
 
 s = m:section(NamedSection, "config", "upnpd", "")
 e = s:option(Flag, "enabled", translate("enable"))
+e.rmempty = false
+
 function e.write(self, section, value)
        local cmd = (value == "1") and "enable" or "disable"
        os.execute("/etc/init.d/miniupnpd " .. cmd)