From d6c94ae69c037355a6aa865544a78346de6761a4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 3 Oct 2008 12:00:56 +0000 Subject: [PATCH] * luci/app/hd_idle: fix error in cbi model --- applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua b/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua index f7040a551b..e880aaf639 100644 --- a/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua +++ b/applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua @@ -23,7 +23,8 @@ s.anonymous = true s:option(Flag, "enabled", translate("enabled", "Enable")) -disk = s:option(Value, "disk", translate("disk")).rmempty = true +disk = s:option(Value, "disk", translate("disk")) +disk.rmempty = true for _, dev in ipairs(luci.fs.glob("/dev/[sh]d[a-z]")) do disk:value(luci.fs.basename(dev)) end -- 2.30.2