diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 32ec980ed6cbc84e92e75aa16807de6d88b30db0..61ba633d3cc148c56aca66d879f2572fc785d15c 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -2059,9 +2059,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem): old_chain_workflow_id_set = set() old_chain_workflow_id_set.add(wf_id[1:]) # then either '+' or nothing, add wf id to the list - elif wf_id[0] == '+': - old_chain_workflow_id_set.add(wf_id[1:]) else: + wf_id.lstrip('+') old_chain_workflow_id_set.add(wf_id) # create the new chain chain_dict[chain_key] = list(old_chain_workflow_id_set)