Commit 74711589 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Give one more chance to find the came_from whenever we come from a dialog with...

Give one more chance to find the came_from whenever we come from a dialog with input button and no validation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20314 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 147bfe5f
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -69,7 +66,7 @@
dummy python: response.redirect(url);" />\n
</tal:block>\n
<tal:block tal:condition="not: isAnon">\n
<tal:block tal:define="came_from python: request.get(\'came_from\') or here.absolute_url() + \'/view\';\n
<tal:block tal:define="came_from python: request.get(\'came_from\') or request.get(\'field_came_from\') or here.absolute_url() + \'/view\';\n
dummy python: response.redirect(came_from);" />\n
</tal:block>\n
</tal:block>\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