Commit c601fdf1 authored by Julien Muchembled's avatar Julien Muchembled

erp5_knowledge_pad: validate pad in its context

For example, this is required for multi-valued fields when an unknown value
is kept selected. Like elsewhere in ERP5, we don't want validation to raise
in this case.
parent 3954133f
......@@ -64,7 +64,7 @@ box = context.restrictedTraverse(box_relative_url)\n
portal_selection = context.getPortalObject().portal_selections\n
\n
# do validation\n
form = getattr(context,form_id)\n
form = getattr(box, form_id)\n
try:\n
# Validate\n
form.validate_all_to_request(request, key_prefix=form_fields_main_prefix)\n
......
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