vocabulary: handle integer and string tokens as equivalent
This commit is contained in:
parent
7483763564
commit
c50e7f07d3
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ class DropdownFieldInstance(FieldInstance):
|
|||
def display(self, value):
|
||||
items = self.context.getVocabularyItems(self.clientInstance, self.request)
|
||||
for item in items:
|
||||
if item['token'] == value:
|
||||
if str(item['token']) == str(value):
|
||||
return item['title']
|
||||
return value
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue