Commit 8d3b00b7 authored by Jérome Perrin's avatar Jérome Perrin

don't set and uid if not present on the object


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12824 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee84ceaa
......@@ -121,6 +121,7 @@ def _recursiveRemoveUid(obj):
This is used to prevent unindexing real objects when we delete subobjects on
a copy of this object.
"""
if hasattr(aq_base(obj), 'uid'):
obj.uid = None
for subobj in obj.objectValues():
_recursiveRemoveUid(subobj)
......
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