Commit 0c32d795 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Allow to build a business template even is a workflow marked for deletion is

not currently present in the chain.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9711 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 641dfe78
......@@ -1236,7 +1236,8 @@ class PortalTypeWorkflowChainTemplateItem(BaseTemplateItem):
workflow_name = workflow[1:]
else:
workflow_name = workflow
if workflow_name not in chain_dict['chain_%s' % portal_type]:
if workflow[0]!= '-' and \
workflow_name not in chain_dict['chain_%s' % portal_type]:
raise NotFound, 'workflow %s not found in chain for portal_type %s'\
% (workflow, portal_type)
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