diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-05-29 09:21:25 +0000 |
|---|---|---|
| committer | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-05-29 11:16:08 +0000 |
| commit | 0ce05c540d25ebc4bd589c1e2436ee2aa642ccf5 (patch) | |
| tree | 0e1499b321bd1260504caf16124882cc11da061c /addons/sale_quotation_builder | |
| parent | 6c05781d985fdf249f84bde4ad662758a65304f8 (diff) | |
[FIX] website_sale: prevent search bar bug
Issue
When pressing UP or DOWN arrow in search bar with empty text a traceback
occurs.
Step to Reproduce
- Install website_sale "eCommerce" application
- Go to Website
- Go to Shop
- Click in Search Bar
- Press Up or Down Key
Cause
When no text is entered in the search bar, the $menu is undefined
so trying to access children causes the error
Solution
Test that $menu is defined prior to try accessing its children
task id-2252923
closes odoo/odoo#52161
Forward-port-of: #51920
X-original-commit: 30785e68852fa3cd18be11fcbaad4e886d01301c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/sale_quotation_builder')
0 files changed, 0 insertions, 0 deletions
