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 @@
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
tal:attributes="href python:\n
\'GadgetTool_viewPrettyGadgetDialog?reset=1&cancel_url=%s/view&active_pad_relative_url=%s&mode=%s\'\n
%(real_here.absolute_url(), \n
\'GadgetTool_viewPrettyGadgetDialog?reset=1&cancel_url=%s&active_pad_relative_url=%s&mode=%s\'\n
%(cancel_url, \n
active_knowledge_pad.getRelativeUrl(), mode);"\n
title="Click to add portlets"\n
i18n:translate="" \n
......
......@@ -75,7 +75,7 @@
context/Base_isUserAllowedToUseKnowledgePad;\n
isKnowledgePadTemplateUsed python:\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
<tal:block tal:condition="python: not createDefaultPadForUser and \n
not waitForActivitiesOnServer and\n
......
406
\ No newline at end of file
407
\ 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