Commit 9fd020ff authored by Valentin Benozillo's avatar Valentin Benozillo

erp5_hal_json_style: Fix missing translation when validator return error

parent b356e91a
......@@ -2107,7 +2107,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
# Include cell error text in case of form validation
if field_errors.has_key('%s_%s' % (editable_field.id, brain_uid)):
contents_item[select]['field_gadget_param']["error_text"] = \
field_errors['%s_%s' % (editable_field.id, brain_uid)].error_text
Base_translateString(field_errors['%s_%s' % (editable_field.id, brain_uid)].error_text)
# Do not generate link for empty value, as it will not be clickable in UI
......
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