summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2012-06-25 10:02:53 +0000
committerManuel Munz <freifunk@somakoma.de>2012-06-25 10:02:53 +0000
commit92f0643e2cce43c6ef22af17754ad13c547ba9c9 (patch)
treef56a3ac87c3bea1e3c75691e04e47f33f805fa1d /modules
parent6780f757d63e60f65a99ae4022f8b0d9c08fee94 (diff)
modules/freifunk: Add minlength datatype to location, #444
Diffstat (limited to 'modules')
-rw-r--r--modules/freifunk/luasrc/model/cbi/freifunk/basics.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
index fa7cfecd1..bbf7c56ce 100644
--- a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
+++ b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua
@@ -47,6 +47,7 @@ hn.datatype = "hostname"
loc = b:option(Value, "location", translate("Location"))
loc.rmempty = false
+loc.datatype = "minlength(1)"
lat = b:option(Value, "latitude", translate("Latitude"), translate("e.g.") .. " 48.12345")
lat.datatype = "float"