Commit e18dcbf3 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Creat new chains_by_type if its empty

parent 3d6ee945
......@@ -371,6 +371,9 @@ class ERP5TypeInformation(XMLObject,
portal = self.getPortalObject()
pw = portal.portal_workflow
cbt = pw._chains_by_type
# Create empty chains dict if it is empty
if cbt is None:
cbt = {}
id = self.getId()
# If the type_workflow_list is empty, delete the key from workflow chains
......
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