Commit d9a0c32e authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Better to generate newId than to use the old ones

parent d29b0596
......@@ -711,7 +711,8 @@ class BusinessItem(XMLObject):
_recursiveRemoveUid(obj)
obj = aq_base(obj)
obj.isIndexable = ConstantGetter('isIndexable', value=False)
self._setObject(obj.getId(), obj, suppress_events=True)
new_id = self.generateNewId()
self._setObject(new_id, obj, suppress_events=True)
except AttributeError:
# In case the object doesn't exist, just pass without raising error
pass
......
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