From 92f0643e2cce43c6ef22af17754ad13c547ba9c9 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Mon, 25 Jun 2012 10:02:53 +0000 Subject: modules/freifunk: Add minlength datatype to location, #444 --- modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/freifunk/luasrc') 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" -- cgit v1.2.3