Merge pull request #5162 from tsiegleauq/search-value-selector-for-states

Fix untranslated searchable values
This commit is contained in:
Emanuel Schütze 2019-12-10 17:00:29 +01:00 committed by GitHub
commit bb41125bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -152,13 +152,8 @@ export class SearchValueSelectorComponent implements OnDestroy {
if (foundId) {
return true;
}
return (
item
.toString()
.toLowerCase()
.indexOf(this.searchValue) > -1
);
const searchableString = this.translate.instant(item.getTitle()).toLowerCase();
return searchableString.indexOf(this.searchValue) > -1;
});
}
}