Merge pull request #863 from Blizzard/bug-api-addallowed
fix for duplicate 'allowed'.
This commit is contained in:
commit
076b9565bc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user