From ba6c1c4a0235543128847f9a7f880a59a8319659 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Mon, 21 Mar 2005 09:31:47 +0000 Subject: [PATCH] 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 --- product/ERP5/Document/Resource.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5/Document/Resource.py b/product/ERP5/Document/Resource.py index fc91512623..324f2d4a5a 100755 --- a/product/ERP5/Document/Resource.py +++ b/product/ERP5/Document/Resource.py @@ -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: -- 2.30.9