Skip to content

Commit

Permalink
dashboard search fix when fulltext search is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Oct 12, 2020
1 parent 2afce54 commit d152061
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -189,9 +189,13 @@ public Search load() {

String searchByName = getSearchByNameParameterValue();
if (searchByName != null) {
for (PropertySearchItem item : search.getPropertyItems()) {
if (ItemPath.create(ObjectType.F_NAME).equivalent(item.getPath())) {
item.setValue(new SearchValue(searchByName));
if (SearchBoxModeType.FULLTEXT.equals(search.getSearchType())) {
search.setFullText(searchByName);
} else {
for (PropertySearchItem item : search.getPropertyItems()) {
if (ItemPath.create(ObjectType.F_NAME).equivalent(item.getPath())) {
item.setValue(new SearchValue(searchByName));
}
}
}
}
Expand Down

0 comments on commit d152061

Please sign in to comment.