Ticket #4114 (closed Bug: fixed)

Opened 9 years ago

Events and News are not filtering by published

Reported by: andym Owned by:
Priority: minor Milestone: 2.1
Component: Navigation/Folder listings Version:
Keywords: Cc:

Description

Not sure if i've missed something deliberate or if its just been missed, but looks like in the criteria for the News Topic, it's not filtering on being published.

Change History

comment:1 Changed 9 years ago by Anonymous User

Suggested fix:

aubert /usr/local/zope/Products/CMFPlone/migrations/v2_1 $ svn diff alphas.py Index: alphas.py =================================================================== --- alphas.py (revision 7082) +++ alphas.py (working copy) @@ -891,6 +891,8 @@

type_crit = topic.addCriterion('Type','ATPortalTypeCriterion') type_crit.setValue('News Item') sort_crit = topic.addCriterion('created','ATSortCriterion')

+ state_crit = topic.addCriterion('review_state', 'ATSimpleStringCriterion') + state_crit.setValue('published')

out.append('Added Topic for default news folder view.')

else:

out.append('Topic default news folder view already in place or ATCT is not installed.')

comment:2 Changed 9 years ago by alecm

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in svn for both evnets and news.

Note: See TracTickets for help on using tickets.