From 5403e22bbef208d0f5b55b0a67b37d749e851dc5 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Tue, 4 May 2004 08:15:07 +0000
Subject: [PATCH] fixed context_key

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@813 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/CategoryTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py
index 7a8d2e7282..b474f5b0b0 100755
--- a/product/CMFCategory/CategoryTool.py
+++ b/product/CMFCategory/CategoryTool.py
@@ -756,7 +756,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
       if acquired_object_dict is None:
         acquired_object_dict = {}
       else:
-        context_key = (context.getPhysicalPath(), base_category, portal_type) # Prevents recursion in category acquisition
+        context_key = (context.getPhysicalPath(), base_category, tuple(portal_type)) # Prevents recursion in category acquisition
         if context_key in acquired_object_dict:
           # Stop recursion if this object if already used
           return []
-- 
2.30.9