From 92f0643e2cce43c6ef22af17754ad13c547ba9c9 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Mon, 25 Jun 2012 10:02:53 +0000 Subject: [PATCH] modules/freifunk: Add minlength datatype to location, #444 --- modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua index fa7cfecd1e..bbf7c56ce0 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" -- 2.30.2