Commit b9483c71 authored by Boris Kocherov's avatar Boris Kocherov Committed by Julien Muchembled

BT: preventing of garbage appearance in objects during reinstall

(cherry picked from commit ad309c80)
parent b99c9ba7
......@@ -5050,6 +5050,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
if self.getBtForDiff():
item.is_bt_for_diff = 1
item.build(self)
# update _p_jar property of objects cleaned by removeProperties
transaction.savepoint(optimistic=True)
def publish(self, url, username=None, password=None):
"""
......
......@@ -188,8 +188,6 @@ class WorkingCopy(Implicit):
if business_template.getBuildingState() == 'draft':
business_template.edit()
business_template.build()
# XXX: Big hack to make export work as expected.
transaction.commit()
self._export(business_template)
def _export(self, business_template):
......
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