Skip to content

Commit

Permalink
Bring back reverted code to fix pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jul 18, 2019
1 parent a1b6d8a commit 81c5ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collective/collectionfilter/contentfilter.py
Expand Up @@ -7,8 +7,8 @@ def set_content_filter(context, event):
parameters to narrow the results of the collection.
"""
req = event.request
if 'collectionfilter' not in req.form:
if 'collectionfilter' not in req.form or 'contentFilter' in req:
return
del req.form['collectionfilter']
# We leave collectionfilter=1 in req.form so that it gets put into batch links
content_filter = make_query(req.form)
event.request['contentFilter'] = content_filter

0 comments on commit 81c5ce2

Please sign in to comment.