Skip to content

Commit

Permalink
small visibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kateryna Honchar committed May 5, 2022
1 parent 4790dbc commit 41d9402
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,12 @@ private static <C extends Containerable> Search<C> createSearch(
.stream()
.filter(v -> v.getFilter() != null) //todo should we check also collectionRef?
.collect(Collectors.toList());
ObjectCollectionListSearchItemWrapper<C> viewListItem = new ObjectCollectionListSearchItemWrapper<>(searchConfWrapper.getTypeClass(),
views);
viewListItem.setVisible(CollectionUtils.isNotEmpty(views));
searchConfWrapper.getItemsList().add(viewListItem);
if (CollectionUtils.isNotEmpty(views)) {
ObjectCollectionListSearchItemWrapper<C> viewListItem = new ObjectCollectionListSearchItemWrapper<>(searchConfWrapper.getTypeClass(),
views);
viewListItem.setVisible(true);
searchConfWrapper.getItemsList().add(viewListItem);
}
}
searchConfWrapper.getItemsList().sort((i1, i2) -> String.CASE_INSENSITIVE_ORDER.compare(
StringUtils.isEmpty(i1.getName()) ? "" : PageBase.createStringResourceStatic(i1.getName()).getString(),
Expand Down

0 comments on commit 41d9402

Please sign in to comment.