Skip to content

Commit

Permalink
fix for MID-6767 - resource search
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jan 25, 2021
1 parent c5fbc7e commit efddbc1
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -113,9 +113,10 @@ protected void initLayout(){
}

private void initSearch(String text){
PageStorage storage = getSessionStorage().getPageStorageMap().get(SessionStorage.KEY_RESOURCES);
String storageKey = getStorageKey();
PageStorage storage = getSessionStorage().getPageStorageMap().get(storageKey);
if (storage == null) {
storage = getSessionStorage().initPageStorage(SessionStorage.KEY_RESOURCES);
storage = getSessionStorage().initPageStorage(storageKey);
}
Search search = SearchFactory.createSearch(ResourceType.class, this);
if (SearchBoxModeType.FULLTEXT.equals(search.getSearchType())){
Expand All @@ -125,7 +126,7 @@ private void initSearch(String text){
searchItem.getValues().add(new SearchValue<>(text));
}
storage.setSearch(search);
getSessionStorage().getPageStorageMap().put(SessionStorage.KEY_RESOURCES, storage);
getSessionStorage().getPageStorageMap().put(storageKey, storage);
}

@Override
Expand Down

0 comments on commit efddbc1

Please sign in to comment.