Skip to content

Commit

Permalink
SAK-50477 Assignments allow partial searches in the assignments list (#…
Browse files Browse the repository at this point in the history
…12952)

(cherry picked from commit 9c708ac)
  • Loading branch information
st-manu authored and ern committed Oct 14, 2024
1 parent 0c68e5c commit 9a64979
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12780,7 +12780,7 @@ protected int sizeResources(SessionState state) {
String searchTerm = (String) state.getAttribute(SEARCH_ASSIGNMENTS);
if (searchTerm != null && !searchTerm.isEmpty()) {
returnResources = ((List<Assignment>)returnResources).stream()
.filter(a -> a.getTitle().equalsIgnoreCase(searchTerm))
.filter(a -> a.getTitle().toLowerCase().contains(searchTerm.toLowerCase()))
.collect(Collectors.toList());
}

Expand Down

0 comments on commit 9a64979

Please sign in to comment.