Commit 34f0a5b3 authored by Yoshinori Okuji's avatar Yoshinori Okuji

A workaround for workflow chains.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17296 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9046b4fd
......@@ -1530,9 +1530,9 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
continue
path_splitted = path.split('/', 1)
# XXX: to avoid crashing when no portal_type
if len(path_splitted) < 2:
if len(path_splitted) < 1:
continue
portal_type = path_splitted[1]
portal_type = path_splitted[-1]
if chain_dict.has_key('chain_%s' % portal_type):
old_chain_dict = chain_dict['chain_%s' % portal_type]
# XXX we don't use the chain (Default) in erp5 so don't keep it
......
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