diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-08-27 11:13:01 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-08-27 11:41:51 +0200 |
| commit | f5c60d482b16ed1c3bfa7e331ddb1e6a5e70c978 (patch) | |
| tree | a6d528d3f9f38c2a909d244ac63fceb11710de0d /addons/website_event/controllers/main.py | |
| parent | 1e402cb084915c0841c4b6cb945ed37b6753c24f (diff) | |
[FIX] website_event: pager now takes into account the searches performed
by the user. Otherwise it was resetting the search to all events.
Diffstat (limited to 'addons/website_event/controllers/main.py')
| -rw-r--r-- | addons/website_event/controllers/main.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py index 10cc24182b9..eac3c3e0a77 100644 --- a/addons/website_event/controllers/main.py +++ b/addons/website_event/controllers/main.py @@ -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': |
