Commit 3f1786d3 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: No need to create new Id for objects in Business Item

parent c253ca0a
......@@ -771,8 +771,11 @@ class BusinessItem(XMLObject):
_recursiveRemoveUid(obj)
obj = aq_base(obj)
obj.isIndexable = ConstantGetter('isIndexable', value=False)
new_id = self.generateNewId()
self._setObject(new_id, obj, suppress_events=True)
# In general, one Business Item only has one object in it, so we never end
# up in conflict as we'll always be having its unique path(due to GUID of
# Business Item), thus we can just use object Id as it is while making it
# a sub-object of Business Item
self._setObject(obj.id, obj, suppress_events=True)
def _resolvePath(self, folder, relative_url_list, id_list):
"""
......
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