Commit 037b5f10 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] unassigned variable

Fixes: UnboundLocalError: local variable 'translated_portal_type' referenced before assignment
parent 9c1b5e61
......@@ -207,6 +207,7 @@ def renderField(traversed_document, field, form_relative_url, value=None, meta_t
elif meta_type in ("RelationStringField", "MultiRelationStringField"):
portal_type_list = field.get_value('portal_type')
translated_portal_type = []
jump_reference_list = []
if portal_type_list:
portal_type_list = [x[0] for x in portal_type_list]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment