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):
|
def display(self, value):
|
||||||
items = self.context.getVocabularyItems(self.clientInstance, self.request)
|
items = self.context.getVocabularyItems(self.clientInstance, self.request)
|
||||||
for item in items:
|
for item in items:
|
||||||
if item['token'] == value:
|
if str(item['token']) == str(value):
|
||||||
return item['title']
|
return item['title']
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue