[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:
Thibault Delavallée 2014-08-27 11:13:01 +02:00
parent 1e402cb084
commit f5c60d482b
1 changed files with 7 additions and 1 deletions

View File

@ -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':