Commit 21aebfef authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Generate new_id for objects before adding them as sub-objects

parent 10b6a785
......@@ -327,7 +327,8 @@ class BusinessManager(Folder):
self.title = imported_manager.title
for obj in imported_manager.objectValues():
delattr(obj, '__ac_local_roles__')
self._setObject(obj.getId(), aq_base(obj))
new_id = self.generateNewId()
self._setObject(new_id, aq_base(obj))
obj.isIndexable = ConstantGetter('isIndexable', value=False)
self.setProperty('template_path_list', imported_manager.getProperty('template_path_list'))
self.setProperty('layer', imported_manager.getProperty('layer'))
......
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