From 9f2a920f2f3c0229f60d05b6bc13b2f5ff079019 Mon Sep 17 00:00:00 2001 From: "Louis (loco)" Date: Fri, 5 Apr 2024 10:18:14 +0000 Subject: [PATCH] [FIX] website_blog: display the total number of filtered elements Steps to reproduce: - Add the same tag to 13 different blog posts. - On the "Blog" page, click on this tag to filter the blogs. -> Problem: the result displays "12 Articles" but they are actually 13. In this case, the result displays "12 Articles" as they are 12 articles on the current page. When going on the second page of the results, "1 Article" is displayed. This problem is solved by displaying the total number of articles found after the filtering operation rather than the number of articles on the page. opw-3802729 closes odoo/odoo#161137 X-original-commit: 4e90dc9096cbcf9f2fe7f251b247c8d62bc0bc5d Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Colin Louis (loco) --- addons/website_blog/views/website_blog_posts_loop.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/website_blog/views/website_blog_posts_loop.xml b/addons/website_blog/views/website_blog_posts_loop.xml index be59f9510f7..1c728fb71d5 100644 --- a/addons/website_blog/views/website_blog_posts_loop.xml +++ b/addons/website_blog/views/website_blog_posts_loop.xml @@ -38,11 +38,22 @@ according to the enabled options.
+
+ + Article + Articles +
+ + +
Article Articles
+