Commit 5b6a7522 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: remove none categories return in getVariationRangeCategoryItemList

(thx to the Unit Test).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3754 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77012955
......@@ -125,10 +125,11 @@ class Resource(XMLMatrix, CoreResource, Variated):
other_base_category_list = map(lambda x: x[0],
other_base_category_item_list)
for c in other_base_category_list:
result += self.portal_categories.unrestrictedTraverse(c).\
getCategoryChildLogicalPathItemList(
base=base,
display_base_category=display_base_category)
result += self.portal_categories.unrestrictedTraverse(c).\
getCategoryChildLogicalPathItemList(
base=base,
display_base_category=display_base_category,
display_none_category=0)
return result
......
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