From: Steven Barth Date: Mon, 25 May 2009 10:31:08 +0000 (+0000) Subject: Fix: Mountpoints cannot be disabled X-Git-Tag: 0.9.0~383 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=e9e22aca73d27410572871ae2870c41b96b11a8a Fix: Mountpoints cannot be disabled --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua index 7873842f8..1e2a12fec 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua @@ -61,7 +61,7 @@ mount.anonymous = true mount.addremove = true mount.template = "cbi/tblsection" -mount:option(Flag, "enabled", translate("enable")) +mount:option(Flag, "enabled", translate("enable")).rmempty = false dev = mount:option(Value, "device", translate("device"), translate("a_s_fstab_device1")) for i, d in ipairs(devices) do dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]}) @@ -77,7 +77,7 @@ swap.anonymous = true swap.addremove = true swap.template = "cbi/tblsection" -swap:option(Flag, "enabled", translate("enable")) +swap:option(Flag, "enabled", translate("enable")).rmempty = false dev = swap:option(Value, "device", translate("device"), translate("a_s_fstab_device1")) for i, d in ipairs(devices) do dev:value(d, size[d] and "%s (%s MB)" % {d, size[d]})