Commit bfbaf8d8 authored by Jérome Perrin's avatar Jérome Perrin

Sometime the cancel_url already contains selection_name/selection_index, in...

Sometime the cancel_url already contains selection_name/selection_index, in that case we should not use ERP5Site_redirect that would add it again

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34519 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 247104ea
...@@ -53,8 +53,16 @@ ...@@ -53,8 +53,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>return context.ERP5Site_redirect(cancel_url, **kw)\n <value> <string encoding="cdata"><![CDATA[
</string> </value>
if \'?selection_name=\' in cancel_url or \'&selection_name=\' in cancel_url:\n
# if selection_name is already present in the cancel URL, we do not\n
# use erp5_xhtml_style script that would add it again.\n
return context.REQUEST.RESPONSE.redirect(cancel_url)\n
return context.ERP5Site_redirect(cancel_url, **kw)\n
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -92,9 +100,9 @@ ...@@ -92,9 +100,9 @@
<tuple> <tuple>
<string>cancel_url</string> <string>cancel_url</string>
<string>kw</string> <string>kw</string>
<string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>_apply_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
926 927
\ 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