odoo icon indicating copy to clipboard operation
odoo copied to clipboard

[FW][FIX] website: prevent website search box cache

Open fw-bot opened this issue 1 year ago • 2 comments

Current behavior before commit: When making a search through /website/search, the website_search_box view is cached. This includes the search term and the search count. Therefore when a user makes a search, a previous search term might be displayed. It may even be a search that another user made.

This bug appeared since the search bar has been added to header templates 7559626.

Description of the fix: Add t-nocache to the whole searchbox so that the search term and the search count is updated with each search.

Steps to reproduce the issue in local: (For the issue to appear consistently everytime there should be only a single worker)

  1. Click on the search button in the website header and make a search
  2. Do the same thing again with another search
  3. Click again on the search button

The previous search term is shown inside the searchbar

opw-4114511

Forward-Port-Of: odoo/odoo#180548

fw-bot avatar Sep 30 '24 17:09 fw-bot

Pull request status dashboard

robodoo avatar Sep 30 '24 17:09 robodoo

This PR targets saas-17.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

fw-bot avatar Sep 30 '24 17:09 fw-bot