Commit dced62ec authored by Vincent Pelletier's avatar Vincent Pelletier

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

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: https://svn.erp5.org/repos/public/erp5/trunk@10494 20353a03-c40f-0410-a6d1-a30d3c3de9de
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")
REQUEST.RESPONSE.redirect("%s?portal_status_message=%s&dialog_category=object_exchange&selection_name=business_template_selection"
% (ret_url, psm))
REQUEST.RESPONSE.redirect("%s?cancel_url=%s&portal_status_message=%s&dialog_category=object_exchange&selection_name=business_template_selection"
% (ret_url, REQUEST.form.get('cancel_url', ''), psm))
security.declareProtected( Permissions.AccessContentsInformation,
'getRepositoryList' )
......
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