Fixed : In multi-word searches, the search only shows the last word in the search input ( 860rvqhrb )

This commit is contained in:
Cüneyt Şentürk 2024-04-24 14:52:54 +03:00
parent 9c65c5933a
commit fbe33ff83c
1 changed files with 7 additions and 1 deletions

View File

@ -923,9 +923,13 @@ export default {
search_string = search_string.split(' ');
let search_values = [];
search_string.forEach(function (string) {
if (string.search(':') === -1) {
this.search = string.replace(/[\"]+/g, '');
let sv = string.replace(/[\"]+/g, '');
search_values.push(sv);
} else {
let filter = string.split(':');
let option = '';
@ -1014,6 +1018,8 @@ export default {
this.filter_index++;
}
}, this);
this.search = (search_values.length > 1) ? search_values.join(' ') : search_values.join('');
} else if (this.defaultFiltered) {
this.defaultFiltered.forEach(function (filter) {
let option = '';