Commit a5d10aff authored by Mayoro Diagne's avatar Mayoro Diagne

add workflow_id in actions dict

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f3a62cc
No related merge requests found
......@@ -378,7 +378,13 @@ class ERP5Site(FolderMixIn, CMFSite):
workflow_title_list = sorted_workflow_actions.keys()
workflow_title_list.sort()
for key in workflow_title_list:
sorted_global_actions.append({'title': key, 'disabled': 1})
workflow_id = ""
current_worklist_array = sorted_workflow_actions[key]
if len(current_worklist_array)>0:
current_worklist_dict = current_worklist_array[0]
if current_worklist_dict.has_key("workflow_id"):
workflow_id = current_worklist_dict["workflow_id"]
sorted_global_actions.append({'title': key, 'disabled': 1, 'workflow_id': workflow_id})
sorted_global_actions.extend(sorted_workflow_actions[key])
sorted_global_actions.append({'title': 'Others', 'disabled': 1})
sorted_global_actions.extend(other_global_actions)
......
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