luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / modules / luci-mod-system / luasrc / model / cbi / admin_system / crontab.lua
index 016a6199aab56c6b0a5e10d06e5963f148f44013..beb24e7caead12ddf231709c015024b207e09863 100644 (file)
@@ -11,6 +11,7 @@ f = SimpleForm("crontab", translate("Scheduled Tasks"),
                "crontab file was empty before editing."))
 
 t = f:field(TextValue, "crons")
+f.forcewrite = true
 t.rmempty = true
 t.rows = 10
 function t.cfgvalue()