Commit dced62ec by Vincent Pelletier

Porpagate the cancel url so that calling this method from a dialog doesn't break…

… the cancel button. Make it optionnal to avoid breaking all existing sites...

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
1 parent 989e1470
......@@ -531,8 +531,8 @@ class TemplateTool (BaseTool):
if REQUEST is not None:
ret_url = self.absolute_url() + '/' + REQUEST.get('dialog_id', 'view')
psm = N_("Business+Templates+Updated+Successfully")
% (ret_url, psm))
% (ret_url, REQUEST.form.get('cancel_url', ''), psm))
security.declareProtected( Permissions.AccessContentsInformation,
'getRepositoryList' )
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!