applications/luci-qos: fix disabling
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 15 May 2010 18:46:58 +0000 (18:46 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 15 May 2010 18:46:58 +0000 (18:46 +0000)
applications/luci-qos/luasrc/model/cbi/qos/qos.lua

index 026099e..af481fd 100644 (file)
@@ -24,7 +24,8 @@ s = m:section(TypedSection, "interface", translate("Interfaces"))
 s.addremove = true
 s.anonymous = false
 
-s:option(Flag, "enabled", translate("Enable"))
+e = s:option(Flag, "enabled", translate("Enable"))
+e.rmempty = false
 
 c = s:option(ListValue, "classgroup", translate("Classification group"))
 c:value("Default", translate("default"))