Commit c8eefac6 authored by Łukasz Nowak's avatar Łukasz Nowak

- simplify the condition


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45120 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c97a9434
...@@ -2059,9 +2059,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): ...@@ -2059,9 +2059,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
old_chain_workflow_id_set = set() old_chain_workflow_id_set = set()
old_chain_workflow_id_set.add(wf_id[1:]) old_chain_workflow_id_set.add(wf_id[1:])
# then either '+' or nothing, add wf id to the list # then either '+' or nothing, add wf id to the list
elif wf_id[0] == '+':
old_chain_workflow_id_set.add(wf_id[1:])
else: else:
wf_id.lstrip('+')
old_chain_workflow_id_set.add(wf_id) old_chain_workflow_id_set.add(wf_id)
# create the new chain # create the new chain
chain_dict[chain_key] = list(old_chain_workflow_id_set) chain_dict[chain_key] = list(old_chain_workflow_id_set)
......
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