Commit d9ddc444 authored by Romain Courteaud's avatar Romain Courteaud

Fix redirection.

parent 7f58ed1d
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
web_site = context.getWebSiteValue()\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
\n \n
support_request_template = portal.restrictedTraverse(\n support_request_template = portal.restrictedTraverse(\n
...@@ -81,7 +82,8 @@ web_message.edit(\n ...@@ -81,7 +82,8 @@ web_message.edit(\n
)\n )\n
web_message.stop(comment="Submitted from the web site contact form")\n web_message.stop(comment="Submitted from the web site contact form")\n
\n \n
support_request.Base_redirect(\'view\', keep_items={\'portal_status_message\':context.Base_translateString(\'Ticket created.\')})\n # Redirect to web site to hide the indexation process\n
web_site.Base_redirect(\'view\', keep_items={\'editable_mode\': 0, \'portal_status_message\':context.Base_translateString(\'Ticket created.\')})\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
33 34
\ No newline at end of file \ 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