From 0f38eab5fe75d02123792b6450ddd6e89781cc8f Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Tue, 14 Mar 2006 13:34:24 +0000
Subject: [PATCH] Fix diff between local copy and BT.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6092 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 46bcc71edf..403cf35a4e 100755
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -4221,6 +4221,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
       if bt2_id is not None:
         if bt2_id == self.getId():
           compare_to_zodb = 1
+          installed_bt = self.getInstalledBusinessTemplate(title=self.getTitle())
         else:
           installed_bt = self.portal_templates._getOb(bt2_id)
       else:
-- 
2.30.9