Commit d956fd9d authored by Vincent Pelletier's avatar Vincent Pelletier

Don't loose current form when, for example, changing the current page on a...

Don't loose current form when, for example, changing the current page on a listbox in a form that's not the default action (named 'view').


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7659 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4568a93b
......@@ -99,8 +99,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
return
context = self.aq_parent
if form_id is None:
form_id = 'view'
form_id = form_id or REQUEST.get('form_id', 'view')
url = context.absolute_url() + '/' + form_id
if query_string is not None:
if no_reset:
......
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