Commit d438818b authored by iv's avatar iv

ERP5Workflow: fix WorkflowTool creation

parent 35750071
......@@ -1697,7 +1697,9 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
if not isinstance(tool, WorkflowTool):
# create new Workflow Tool
new_tool = self._setObject('portal_workflow_new', WorkflowTool())
self._setObject('portal_workflow_new', WorkflowTool())
new_tool = self._getOb("portal_workflow_new")
LOG("migrateToPortalWorkflowClass, new_tool", 0, new_tool)
new_tool._chains_by_type = tool._chains_by_type
# copy-paste operation
......
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