Skip to content

Commit

Permalink
Bug/Vas-11649: handle wrong stats on accession register v6
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenaissa committed Sep 9, 2023
1 parent d3c215c commit 13cbdbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ public PaginatedValuesDto<AccessionRegisterDetailDto> getAllPaginated(
value.setSubmissionAgencyLabel(agenciesMap.get(value.getSubmissionAgency()));
});
Map<String, Object> optionalValues = new HashMap<>();
if (hasMore) {
if (hasMore || pageNumber > 0) {
try {
query = AccessRegisterVitamQueryHelper.createQueryDSL(accessionRegisterSearchDto);
query = AccessRegisterVitamQueryHelper.createQueryDSL(accessionRegisterSearchDto, 0, 10000, null, null);
} catch (InvalidCreateOperationException | InvalidParseOperationException e) {
throw new InternalServerException("Can't create dsl query to get paginated accession registers", e);
}
Expand Down

0 comments on commit 13cbdbf

Please sign in to comment.