Commit 2d13e281 authored by wenjie.zheng's avatar wenjie.zheng

patches/ActionTool.py: force to load portal_workflow as action provider.

parent 018c8010
......@@ -53,9 +53,12 @@ def listFilteredActionsFor(self, object=None):
invokes the migration of their actions to portal_actions
"""
actions = []
listActionProviderlist = list(self.listActionProviders())
if 'portal_workflow' not in listActionProviderlist:
listActionProviderlist.append('portal_workflow')
for provider_name in listActionProviderlist:
# Include actions from specific tools.
for provider_name in self.listActionProviders():
provider = getattr(self, provider_name)
if hasattr(provider, 'getActionListFor'):
from Products.ERP5Type.Utils import createExpressionContext
......
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