Commit d080ad28 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Copy title for the new manager

parent edbbbd1c
......@@ -278,6 +278,7 @@ class BusinessManager(XMLObject):
connection = self.aq_parent._p_jar
file = open(path, 'rb')
obj = connection.importFile(file)
self.title = obj.title
self._path_item_list = obj._path_item_list[:]
self._setTemplatePathList(obj.getTemplatePathList())
......@@ -690,6 +691,7 @@ class BusinessItem(Persistent):
obj = p.unrestrictedTraverse(relative_url)
obj = obj._getCopy(context)
obj = obj.__of__(context)
# XXX: '_recursiveRemoveUid' is not working as expected
_recursiveRemoveUid(obj)
self.value = obj
# Generate hash for the erp5 object value
......
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