Commit ba6c1c4a authored by Romain Courteaud's avatar Romain Courteaud

getVariationRangeCategoryItemList must be able to return all variation possibilities.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2725 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b048769a
......@@ -90,6 +90,10 @@ class Resource(XMLMatrix, CoreResource, Variated):
c_range = self.getCategoryMembershipList(c, base=base)
if len(c_range) > 0:
result += list(map(lambda x: (x,x), c_range))
else:
if root:
# XXX - no idea why we should keep this ? JPS
result += self.portal_categories.unrestrictedTraverse(c).getBaseItemList(base=base)
try:
other_variations = self.searchFolder(portal_type = self.getPortalVariationTypeList())
except:
......
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