From 572216b157524a7b4c715ef7db8ded9dca7248ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 30 Jun 2009 07:24:53 +0000
Subject: [PATCH]  - 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
---
 .../portal_skins/erp5_xhtml_style/Base_createCloneDocument.xml  | 2 ++
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision             | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_createCloneDocument.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_createCloneDocument.xml
index fc4a9db4a0..3f06949603 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_createCloneDocument.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_createCloneDocument.xml
@@ -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
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 7392849d54..19e03cffa3 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-775
\ No newline at end of file
+776
\ No newline at end of file
-- 
2.30.9