Browse Source

[UPDT] Update 'website_search_blog'

pull/213/head
Ajmal Cybro 3 years ago
parent
commit
13263ce314
  1. 2
      website_search_blog/__manifest__.py
  2. 2
      website_search_blog/controllers/main.py

2
website_search_blog/__manifest__.py

@ -21,7 +21,7 @@
{
'name': 'Website Blog Search',
'version': '13.0.1.0.0',
'version': '13.0.1.0.1',
"category": "Website",
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",

2
website_search_blog/controllers/main.py

@ -45,7 +45,7 @@ class BlogInherit(WebsiteBlog):
domain = request.website.website_domain()
blog_post = request.env['blog.post']
blogs = request.env['blog.blog'].search(domain, order="create_date asc", limit=2)
blogs = request.env['blog.blog'].search(domain, order="create_date asc")
# retrocompatibility to accept tag as slug
active_tag_ids = tag and [int(unslug(t)[1]) for t in tag.split(',')] if tag else []
if active_tag_ids:

Loading…
Cancel
Save