diff --git a/product/ERP5/skins/erp5_core/doAction.py b/product/ERP5/skins/erp5_core/doAction.py index d057c2140a9bf5e314dbb322e93845fdbf11a594..5cd32dc44e4083ed594bc8679432ffbb3a9c1214 100755 --- a/product/ERP5/skins/erp5_core/doAction.py +++ b/product/ERP5/skins/erp5_core/doAction.py @@ -1,4 +1,6 @@ -##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)