Commit 83bee752 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Copy title for the new manager

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