mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
added trim method to _selectSource to remove leading and trailing whitespace
This commit is contained in:
@@ -27,9 +27,9 @@ odoo.define("web_search_with_and/static/src/js/search_bar.js", function (require
|
||||
filterId: source.filterId,
|
||||
value:
|
||||
"value" in source
|
||||
? source.value
|
||||
: this._parseWithSource(labelValue, source),
|
||||
label: labelValue,
|
||||
? source.value.trim()
|
||||
: this._parseWithSource(labelValue, source).trim(),
|
||||
label: labelValue.trim(),
|
||||
operator: source.filterOperator || source.operator,
|
||||
isShiftKey: this.isShiftKey,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user