fix for duplicate 'allowed'.

This commit is contained in:
Tom van Dijck 2017-08-02 17:58:57 -07:00
parent bf1ea2445f
commit f232a1e829

View File

@ -349,8 +349,10 @@
end
else
field.allowed = field.allowed or {}
table.insert(field.allowed, value)
field.allowed[value:lower()] = value
if field.allowed[value:lower()] == nil then
table.insert(field.allowed, value)
field.allowed[value:lower()] = value
end
end
end