Skip to content
Snippets Groups Projects
Commit f5c60d48 authored by Thibault Delavallée's avatar Thibault Delavallée
Browse files

[FIX] website_event: pager now takes into account the searches performed

by the user. Otherwise it was resetting the search to all events.
parent 1e402cb0
Branches
Tags
No related merge requests found
......@@ -137,7 +137,13 @@ class website_event(http.Controller):
event_count = event_obj.search(
request.cr, request.uid, dom_without("none"), count=True,
context=request.context)
pager = request.website.pager(url="/event", total=event_count, page=page, step=step, scope=5)
pager = request.website.pager(
url="/event",
url_args={'date': searches.get('date'), 'type': searches.get('type'), 'country': searches.get('country')},
total=event_count,
page=page,
step=step,
scope=5)
order = 'website_published desc, date_begin'
if searches.get('date','all') == 'old':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment