Commit 75f0c63a authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Do not use getToolByName function for getting portal_workflow as it is unreliable

parent bb40c99d
......@@ -222,7 +222,8 @@ class BusinessManager(Folder):
"""
Returns the current state in installation
"""
portal_workflow = getToolByName(self.getPortalObject(), 'portal_workflow')
portal = self.getPortalObject()
portal_workflow = portal.portal_workflow
wf = portal_workflow.getWorkflowById(
'business_manager_installation_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
......
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