Skip to content

Commit

Permalink
Fixed issue where when empty notificatonType passed to notification s…
Browse files Browse the repository at this point in the history
…earch, it attempts match against that empty string

Signed-off-by: Jamie Briggs <jamie.briggs@digital.justice.gov.uk>
  • Loading branch information
Jamie Briggs committed Jan 28, 2025
1 parent bfc0d1c commit e5b9873
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static Specification<Notification> withFilters(
if (Boolean.FALSE.equals(includeClosed)) {
predicates.add(criteriaBuilder.equal(root.get("isOpen"), "true"));
}
if (Objects.nonNull(notificationType)) {
if (stringNotEmpty(notificationType)) {
predicates.add(criteriaBuilder.equal(root.get("actionNotificationInd"), notificationType));
}
if (Objects.nonNull(dateFrom)) {
Expand Down

0 comments on commit e5b9873

Please sign in to comment.