Ticket #1353 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Content portlet does not display folder documents

Reported by: Olivier Grisel <olivier.grisel@…> Owned by: jmorliaguet
Priority: P3 Milestone: CPS 3.4.0
Component: CPSPortlets Version: TRUNK
Severity: minor Keywords:
Cc:

Description

The Content portlet does not display anything when you search for document types such as "Section" or "Workspace".

Change History

comment:1 Changed 14 years ago by jmorliaguet

Which type of search? there is 'related', 'pending', 'last_modified', 'last_published' ...

only 'last_modified' does not expect a published document.

comment:2 Changed 14 years ago by ogrisel

Any type of search (I tried with the 'all' and the 'last_modified' modes in the workspaces) and workspaces never appear.

Related issue :

  • couldn't we reuse the 'search_portal_type' dynamic vocabulary that is used in the advanced_search_form layout to avoid redundancy ? I tried on my box and it seems to work alright as long as you do not check the is_18n flag since it's already i18ned.

comment:3 Changed 14 years ago by ogrisel

ok, I found the origin of the problem : the query has a 'leaves' param hardcoded in the getContentItems script. Is it ok to remove it?

Proposed patch:

--- getContentItems.py	(révision 32542)
+++ getContentItems.py	(copie de travail)
@@ -16,7 +16,7 @@
     query['portal_type'] = searchable_types
 
 # cps filter (portal_xyz, .___)
-query['cps_filter_sets'] = {'query': ('searchable', 'leaves'),
+query['cps_filter_sets'] = {'query': ('searchable',),
                             'operator': 'and'}
 
 # path

comment:4 Changed 14 years ago by ogrisel

fixed in [32560]

comment:5 Changed 14 years ago by ogrisel

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.