Skip to content
Snippets Groups Projects
Commit a525e6d5 authored by Guillaume (gdi)'s avatar Guillaume (gdi) Committed by qsm-odoo
Browse files

[FIX] website_blog: display all the blog posts when filtered


Before this commit, following these steps:
- Go to /blog
- Activate the option Customize > Top banner - Name / Latest Post
- Disable the option Customize > Full Width Cover
- Click on the "guides" tag of the "Buying A Telescope" blog

No blog is displayed. This was because the top banner post is not shown
when the posts are filtered. Basically, once filtered, a blog post was
always missing.

Related to opw-2882492

closes odoo/odoo#104254

X-original-commit: 8198378d
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 18925a2b
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ class WebsiteBlog(http.Controller):
# if blog, we show blog title, if use_cover and not fullwidth_cover we need pager + latest always
offset = (page - 1) * self._blog_post_per_page
if not blog:
if use_cover and not fullwidth_cover:
if use_cover and not fullwidth_cover and not tags and not date_begin and not date_end:
offset += 1
options = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment