Commit 5d124288 authored by Sebastien Robin's avatar Sebastien Robin

hal_json_style: define variable to avoid errors when a field is not fully defined

parent 00acd95f
......@@ -194,6 +194,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')
jump_reference_list = None
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