Commit d7425eeb authored by Sebastien Robin's avatar Sebastien Robin

check if we are coming from a list and then add to the url the previous_md5_object_uid_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16693d52
##parameters=action_select, form_id='', selection_index='', selection_name='', uids=None, listbox_uid=None, md5_object_uid_list=None
##parameters=action_select, form_id='', selection_index='', selection_name='', uids=None, listbox_uid=None, md5_object_uid_list=None, is_list=0
is_list = int(is_list)
doAction = action_select.split()
doAction0 = doAction[0]
......@@ -15,8 +17,8 @@ if doAction0 in ('object', 'workflow', 'folder'):
else:
uri += '?'
uri += 'form_id=%s&selection_index=%s&selection_name=%s' % (form_id, selection_index, selection_name)
if md5_object_uid_list is not None:
uri += '&md5_object_uid_list=%s' % md5_object_uid_list
if md5_object_uid_list is not None and is_list == 1:
uri += '&previous_md5_object_uid_list=%s' % md5_object_uid_list
if doAction0 == 'object':
uri += '&dialog_category=object_action'
return request.RESPONSE.redirect(uri)
......
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