Commit 6e1fa36d authored by Fabien Morin's avatar Fabien Morin

don't return on portal_object but on self (like it is in other part of ERP5

like Folder.py, ProxyField.py, Base_callDialogMethod, ...) this permit to stay
on web_site context in case of web_mode.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37806 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b586357
......@@ -94,7 +94,7 @@ class PasswordTool(BaseTool):
if REQUEST is not None:
parameter = urlencode(dict(portal_status_message=msg))
ret_url = '%s/login_form?%s' % \
(self.getPortalObject().absolute_url(),
(self.absolute_url(),
parameter)
return REQUEST.RESPONSE.redirect( ret_url )
return msg
......@@ -132,7 +132,7 @@ class PasswordTool(BaseTool):
if REQUEST is not None:
msg = translateString("An email has been sent to you.")
parameter = urlencode(dict(portal_status_message=msg))
ret_url = '%s/login_form?%s' % (self.getPortalObject().absolute_url(),
ret_url = '%s/login_form?%s' % (self.absolute_url(),
parameter)
return REQUEST.RESPONSE.redirect( ret_url )
......
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