Commit a5c28be6 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Call transition 'edit_action' instead of 'copy' from edit_workflow in manage_afterClone.


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