Commit febfb21d authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ActionsTool.py: force load portal_workflow as an action provider to fix action problem.

parent b995a39f
......@@ -55,7 +55,11 @@ def listFilteredActionsFor(self, object=None):
actions = []
# Include actions from specific tools.
for provider_name in self.listActionProviders():
listActionProviderlist = list(self.listActionProviders())
if 'portal_workflow' not in listActionProviderlist:
listActionProviderlist.append('portal_workflow')
for provider_name in listActionProviderlist:
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