mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[15.0][FIX] web_search_with_and
When we search by the id of any record and not a string, it gives an error on the line: ? source.value.trim(). It is because the value of sorce.value is an integer. To fix it, we do the trim() operation just if source.value is an string.
This commit is contained in:
@@ -27,8 +27,8 @@ odoo.define("web_search_with_and/static/src/js/search_bar.js", function (require
|
||||
filterId: source.filterId,
|
||||
value:
|
||||
"value" in source
|
||||
? source.value.trim()
|
||||
: this._parseWithSource(labelValue, source).trim(),
|
||||
? source.value
|
||||
: this._parseWithSource(labelValue.trim(), source),
|
||||
label: labelValue.trim(),
|
||||
operator: source.filterOperator || source.operator,
|
||||
isShiftKey: this.isShiftKey,
|
||||
|
||||
Reference in New Issue
Block a user