Skip to content

Commit

Permalink
Add type to filters in MapResourceStore
Browse files Browse the repository at this point in the history
  • Loading branch information
mhajas authored and pedroigor committed Apr 7, 2022
1 parent b4770c3 commit f4f5928
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private DefaultModelCriteria<Resource> filterEntryToDefaultModelCriteria(Map.Ent
case EXACT_NAME:
return mcb.compare(SearchableFields.NAME, Operator.EQ, value[0]);
case NAME:
case TYPE:
return mcb.compare(SearchableFields.NAME, Operator.ILIKE, "%" + value[0] + "%");
default:
throw new IllegalArgumentException("Unsupported filter [" + name + "]");
Expand Down

0 comments on commit f4f5928

Please sign in to comment.