Commit 167ac3fc authored by Vincent Pelletier's avatar Vincent Pelletier

Do not use request/ACTUAL_URL as default cancel_url value, because (for...

Do not use request/ACTUAL_URL as default cancel_url value, because (for example) list mode urls are sometime method names, which makes the cancel url useless.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13894 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0065de9b
......@@ -57,9 +57,7 @@
<tal:block metal:define-macro="header_definitions">\n
<tal:block tal:define="\n
global portal_path here/portal_url/getPortalPath;\n
cancel_url request/cancel_url | request/ACTUAL_URL;\n
local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'cancel_url\': cancel_url});\n
\n
global actions python: here.getPortalObject().portal_actions.listFilteredActionsFor(here);\n
global url here/absolute_url;\n
......@@ -67,6 +65,8 @@
dummy python: request.set(\'current_form_id\', current_form_id);\n
global current_url python: \'%s/%s\' % (url, current_form_id);\n
global current_action python: here.ERP5Site_getCurrentAction(current_url, actions);\n
cancel_url request/cancel_url | current_url;\n
dummy python: local_parameter_list.update({\'cancel_url\': cancel_url});\n
\n
dummy python: request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\');\n
dummy python: request.set(\'here\', here);\n
......
358
\ No newline at end of file
359
\ 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