Commit 891c52e4 authored by Romain Courteaud's avatar Romain Courteaud Committed by Tristan Cavelier

[erp5_hal_json_style] Rerender the form after a successfull edit

parent fd0281c5
......@@ -256,4 +256,6 @@ if context.REQUEST.get('is_web_mode', False) and \
not editable_mode:
form_id = 'view'
return context.Base_redirect(keep_items={'portal_status_message': message})
# return context.ERP5Document_getHateoas(form=form, REQUEST=request, mode='form')
return context.Base_renderForm(form_id, message=message)
# return context.Base_redirect(keep_items={'portal_status_message': message})
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