Commit ea82e700 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no need to call keys() here. thanks to Julien for the advice.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28648 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a15c8269
...@@ -381,7 +381,7 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -381,7 +381,7 @@ class ERP5Site(FolderMixIn, CMFSite):
sorted_workflow_actions[workflow_title].append(action) sorted_workflow_actions[workflow_title].append(action)
else: else:
other_global_actions.append(action) other_global_actions.append(action)
for key in sorted(sorted_workflow_actions.keys()): for key in sorted(sorted_workflow_actions):
sorted_global_actions.extend(sorted_workflow_actions[key]) sorted_global_actions.extend(sorted_workflow_actions[key])
sorted_global_actions.append({'title': 'Others', 'disabled': 1}) sorted_global_actions.append({'title': 'Others', 'disabled': 1})
sorted_global_actions.extend(other_global_actions) 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