Commit 291f2cdc authored by Tomáš Peterka's avatar Tomáš Peterka

[ERP5Form] Reinforce FormBox to withstand empty form_id

parent 49d076bd
...@@ -186,7 +186,8 @@ class FormBoxValidator(Validator.Validator): ...@@ -186,7 +186,8 @@ class FormBoxValidator(Validator.Validator):
# TODO: Handle 'cell' for validation inside listboxes, # TODO: Handle 'cell' for validation inside listboxes,
# like it is done for rendering. # like it is done for rendering.
formbox_target_id = field.get_value('formbox_target_id') formbox_target_id = field.get_value('formbox_target_id')
if not formbox_target_id:
return None
# Get current error fields # Get current error fields
current_field_errors = REQUEST.get('field_errors', []) current_field_errors = REQUEST.get('field_errors', [])
......
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