Commit ba1058a2 authored by Ayush Tiwari's avatar Ayush Tiwari

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

parent 0ef20d66
......@@ -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