Commit c59406e2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add '/view' in cancel_url so as to work fine for documents.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29224 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 30158787
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
tal:define="real_here python: request.get(\'current_web_section\', here);\n tal:define="real_here python: request.get(\'current_web_section\', here);\n
real_here python: test(real_here.getPortalType()!=\'Web Site\', real_here, here);"\n real_here python: test(real_here.getPortalType()!=\'Web Site\', real_here, here);"\n
tal:attributes="href python:\n tal:attributes="href python:\n
\'GadgetTool_viewPrettyGadgetDialog?reset=1&cancel_url=%s/view&active_pad_relative_url=%s&mode=%s\'\n \'GadgetTool_viewPrettyGadgetDialog?reset=1&cancel_url=%s&active_pad_relative_url=%s&mode=%s\'\n
%(real_here.absolute_url(), \n %(cancel_url, \n
active_knowledge_pad.getRelativeUrl(), mode);"\n active_knowledge_pad.getRelativeUrl(), mode);"\n
title="Click to add portlets"\n title="Click to add portlets"\n
i18n:translate="" \n i18n:translate="" \n
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
context/Base_isUserAllowedToUseKnowledgePad;\n context/Base_isUserAllowedToUseKnowledgePad;\n
isKnowledgePadTemplateUsed python:\n isKnowledgePadTemplateUsed python:\n
request.get(\'is_knowledge_pad_template_used\', 0);\n request.get(\'is_knowledge_pad_template_used\', 0);\n
cancel_url current_web_section_url;">\n cancel_url string:${current_web_section_url}/view">\n
\n \n
<tal:block tal:condition="python: not createDefaultPadForUser and \n <tal:block tal:condition="python: not createDefaultPadForUser and \n
not waitForActivitiesOnServer and\n not waitForActivitiesOnServer and\n
......
406 407
\ 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