Commit a635dbad authored by Aurel's avatar Aurel

take acre of the list len for workflow chain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5408 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b3c748c
......@@ -1088,7 +1088,13 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
p = context.getPortalObject()
(default_chain, chain_dict) = getChainByType(context)
for key in self._archive.keys():
portal_type, workflow = key.split(' | ')
wflist = key.split(' | ')
if len(wflist) == 2:
portal_type = wflist[0]
worflow = wf_list[1]
else:
portal_type = wflist[0]
worflow = ''
if workflow not in chain_dict['chain_%s' % portal_type]:
raise
if self._objects.has_key(portal_type):
......
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