From 11fe451df30dea3cba568fb6852bee2368754b70 Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Sun, 8 Nov 2009 14:06:12 +0000
Subject: [PATCH] Forgot to stop acquiring portal_archives again and again.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30405 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/ZSQLCatalog.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py
index e8c4682392..1047cdc046 100644
--- a/product/ZSQLCatalog/ZSQLCatalog.py
+++ b/product/ZSQLCatalog/ZSQLCatalog.py
@@ -716,8 +716,8 @@ class ZCatalog(Folder, Persistent, Implicit):
     archive_list = []
     portal_archives = getattr(self, 'portal_archives', None)
     if portal_archives is not None:
-      if len(self.portal_archives):
-        archive_list = self.portal_archives.getArchiveList()
+      if len(portal_archives):
+        archive_list = portal_archives.getArchiveList()
 
     catalog_dict = {}
 
-- 
2.30.9