Commit c27b5e0d authored by Aurel's avatar Aurel

do not use the catalog to retrieve individual variations because in

some cases we might miss them


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44068 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69e13d60
......@@ -113,7 +113,7 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
elif isinstance(base_category_list, str):
base_category_list = (base_category_list,)
individual_variation_list = self.searchFolder(
individual_variation_list = self.contentValues(
portal_type=self.getPortalVariationTypeList(),
sort_on=[('title','ascending')])
individual_variation_list = [x.getObject() for x in
......@@ -185,7 +185,7 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
display_id=display_id, base=base, **kw)
if not omit_individual_variation:
individual_variation_list = self.searchFolder(
individual_variation_list = self.contentValues(
portal_type=self.getPortalVariationTypeList())
individual_variation_list = [x.getObject() for x in
individual_variation_list]
......
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