[FIX] website_event: pager now takes into account the searches performed
by the user. Otherwise it was resetting the search to all events.
This commit is contained in:
parent
1e402cb084
commit
f5c60d482b
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue