Commit 43a65e16 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Allocate a new uid rather than set to zero.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2944 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b138d42f
......@@ -171,7 +171,8 @@ class CopyContainer:
#LOG("After Clone ",0, "id:%s containes:%s" % (str(item.id), str(container.id)))
# Change uid attribute so that Catalog thinks object was not yet catalogued
self_base = aq_base(self)
self_base.uid = None
portal_catalog = getToolByName(self, 'portal_catalog')
self_base.uid = portal_catalog.newUid()
# Clear the transaction references
if getattr(self_base, 'default_source_reference', None):
......
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