Commit 1630b968 authored by Ivan Tyagov's avatar Ivan Tyagov

Do not use HTTP redirect but render view of ingested document as this may lead to conflict errors.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 20ec0a80
......@@ -134,9 +134,9 @@ if redirect_to_document or redirect_url is not None:\n
# by ERP5 form\n
message = context.Base_translateString(message)\n
if redirect_to_document and document is not None:\n
# explicitly requried to redirect to ingested document\n
return document.Base_redirect(\'view\', \n
keep_items=dict(portal_status_message=message))\n
# explicitly required to view ingested document\n
context.REQUEST.set(\'portal_status_message\', message)\n
return document.view()\n
elif redirect_url is not None:\n
# redirect URL has been supplied by caller\n
from ZTUtils import make_query\n
......@@ -219,9 +219,9 @@ return document\n
<string>$append0</string>
<string>x</string>
<string>document_portal_type</string>
<string>dict</string>
<string>ZTUtils</string>
<string>make_query</string>
<string>dict</string>
</tuple>
</value>
</item>
......
77
\ No newline at end of file
82
\ 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