Commit 5403e22b authored by Jean-Paul Smets's avatar Jean-Paul Smets

fixed context_key


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@813 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23e6cab8
......@@ -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 []
......
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