* luci/app/hd_idle: fix error in cbi model
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2008 12:00:56 +0000 (12:00 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 3 Oct 2008 12:00:56 +0000 (12:00 +0000)
applications/luci-hd_idle/luasrc/model/cbi/hd_idle.lua

index f7040a551bfbc1be4ad55a8e35a26f4222fbc4e0..e880aaf639dda1e2d6dc7ef9297ef0382cd42f75 100644 (file)
@@ -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