Commit 572216b1 authored by Łukasz Nowak's avatar Łukasz Nowak

- pass copied object in request to register tracebility information in workflow history


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27826 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae657efd
......@@ -95,6 +95,8 @@ if clone:\n
original_id = getattr(context, \'original_id\', None) or context.getId()\n
# This is required for objects acquired in Web Section\n
clipboard = directory.manage_copyObjects(ids=[original_id])\n
context.REQUEST.set(\'__cp\', clipboard) # CopySupport is using this to set\n
# tracebility information in edit_workflow history\n
paste_result = directory.manage_pasteObjects(cb_copy_data=clipboard)\n
new_object = directory[paste_result[0][\'new_id\']]\n
message_kind = \'Clone\'\n
......
775
\ No newline at end of file
776
\ No newline at end of file
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