Skip to content

Commit

Permalink
Fixed missing favorites fetch in full resource loading. (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
axl8713 authored Feb 10, 2025
1 parent f5ab960 commit ef02d4f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,10 @@ public List<Resource> getResourcesFull(ResourceSearchParameters resourceSearchPa
throws BadRequestServiceEx, InternalErrorServiceEx {

Search searchCriteria = SearchConverter.convert(resourceSearchParameters.getFilter());
searchCriteria.addFetch("security");
searchCriteria.setDistinct(true);
searchCriteria.addFetch("security");
searchCriteria.addFetch("data");
searchCriteria.addFetch("favoritedBy");

securityDAO.addReadSecurityConstraints(
searchCriteria, resourceSearchParameters.getAuthUser());
Expand Down

0 comments on commit ef02d4f

Please sign in to comment.