Commit 35714e67 authored by Vincent Pelletier's avatar Vincent Pelletier

Correct the used form when editing an object (fixes editing Images in a erp5 website).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08b17d47
......@@ -268,7 +268,7 @@ except FormValidationError, validation_errors:\n
else:\n
message = N_("Data+Updated.")\n
if not(ignore_layout) and context.getApplicableLayout() :\n
redirect_url = \'%s?editable_mode=1\' % context.REQUEST.URL1\n
redirect_url = \'%s/%s?editable_mode=1\' % (context.REQUEST.URL1, form_id)\n
elif not selection_index:\n
redirect_url = \'%s/%s?portal_status_message=%s\' % ( context.absolute_url()\n
, form_id\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