Commit 927e5d4e authored by Ivan Tyagov's avatar Ivan Tyagov

Use redirect rather than render default document (in previous implementation...

Use redirect rather than render default document (in previous implementation of Base_contribute doing a direct view in the same request caused ConflicErrors in error logs).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 728f4b2a
......@@ -129,9 +129,9 @@ if redirect_to_document or redirect_url is not None:\n
# by ERP5 form\n
if redirect_to_document and document is not None:\n
# explicitly required to view ingested document\n
context.REQUEST.set(\'portal_status_message\', message)\n
context.REQUEST.set(\'editable_mode\', editable_mode)\n
return document.view()\n
return document.Base_redirect(\'view\', \n
keep_items={\'portal_status_message\': message,\n
\'editable_mode\': editable_mode})\n
elif redirect_url is not None:\n
# redirect URL has been supplied by caller\n
from ZTUtils import make_query\n
......
92
\ No newline at end of file
93
\ No newline at end of file
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