From 641e967652e270c97f563c07e70ff88e52be65de Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Wed, 28 Oct 2020 11:08:59 +0000 Subject: [PATCH] [FIX] website_forum: preserve user filters in URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the parameter for user filters was not kept in the url when navigating with the pager. Closes https://github.com/odoo/odoo/issues/56248 closes odoo/odoo#61093 X-original-commit: c6a8be30c2b43d6462e365da6f3ec5aad32d1c08 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Jérémy Kersten (jke) --- addons/website_forum/controllers/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 3f7865c3525..febdd5aa258 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -143,6 +143,8 @@ class WebsiteForum(WebsiteProfile): url_args['search'] = search if filters: url_args['filters'] = filters + if my: + url_args['my'] = my pager = request.website.pager(url=url, total=question_count, page=page, step=self._post_per_page, scope=self._post_per_page, url_args=url_args)