[gen] Bugfix: display bilingual info in object history.
This commit is contained in:
parent
a671094167
commit
441dc0b423
|
@ -663,7 +663,8 @@ class BaseMixin:
|
||||||
continue
|
continue
|
||||||
# In some cases the old value must be formatted.
|
# In some cases the old value must be formatted.
|
||||||
if field.type == 'Ref':
|
if field.type == 'Ref':
|
||||||
previousData[name] = [r.title for r in previousData[name]]
|
previousData[name] = [r.o.getShownValue('title') \
|
||||||
|
for r in previousData[name]]
|
||||||
elif field.type == 'String':
|
elif field.type == 'String':
|
||||||
languages = field.getAttribute(self, 'languages')
|
languages = field.getAttribute(self, 'languages')
|
||||||
if len(languages) > 1:
|
if len(languages) > 1:
|
||||||
|
|
Loading…
Reference in a new issue