Merge pull request #863 from Blizzard/bug-api-addallowed

fix for duplicate 'allowed'.
This commit is contained in:
Tom van Dijck 2017-08-07 08:48:36 -07:00 committed by GitHub
commit 076b9565bc

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