Commit e771d7cd authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Multilistfield do not have a first_item attribute

parent d9debd7a
......@@ -140,8 +140,7 @@ def renderField(traversed_document, field, form_relative_url, value=None, meta_t
"title": field.get_value("title"),
"required": field.get_value("required"),
# XXX Message can not be converted to json as is
"items": field.get_value("items"),
"first_item": field.get_value("first_item")
"items": field.get_value("items")
}
result["default"] = getFieldDefault(traversed_document, field, result["key"], value)
result["sub_select_key"] = traversed_document.Field_getSubFieldKeyDict(field, 'default:list', key=result["key"])
......
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