Commit 6514e4c7 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Rerender the form after a successfull edit

parent e44c64e2
...@@ -256,4 +256,6 @@ if context.REQUEST.get('is_web_mode', False) and \ ...@@ -256,4 +256,6 @@ if context.REQUEST.get('is_web_mode', False) and \
not editable_mode: not editable_mode:
form_id = 'view' 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