Commit 5599aa0e authored by Jean-Paul Smets's avatar Jean-Paul Smets

bugfix


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5403e22b
...@@ -756,7 +756,7 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -756,7 +756,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
if acquired_object_dict is None: if acquired_object_dict is None:
acquired_object_dict = {} acquired_object_dict = {}
else: else:
context_key = (context.getPhysicalPath(), base_category, tuple(portal_type)) # Prevents recursion in category acquisition context_key = (tuple(context.getPhysicalPath()), base_category, tuple(spec)) # Prevents recursion in category acquisition
if context_key in acquired_object_dict: if context_key in acquired_object_dict:
# Stop recursion if this object if already used # Stop recursion if this object if already used
return [] 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