Commit d2ff946c authored by Alexandre Boeglin's avatar Alexandre Boeglin

portal_workflow.doActionFor() raises an exception if the transition does not exist. Catched.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7822fc0
......@@ -196,7 +196,10 @@ class CopyContainer:
break
else :
source_item = '/'.join(copied_item_list[0])
pw.doActionFor(self_base, 'copy', wf_id='edit_workflow', comment='Object copied from %s' % source_item)
try :
pw.doActionFor(self_base, 'copy', wf_id='edit_workflow', comment='Object copied from %s' % source_item)
except :
LOG('manage_afterPaste :', 0, '''Impossible to call transition 'copy' of 'edit_workflow' for %s''' % self.getRelativeUrl())
self.__recurse('manage_afterClone', item)
# Reindex object
......
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