Skip to content

Commit

Permalink
GRAD2-2580
Browse files Browse the repository at this point in the history
(GRAD) Fix User Request Distribution Run options - Part 2 - CUR and Null Distribution Dates
  • Loading branch information
arybakov-cgi committed May 16, 2024
1 parent 1f9500c commit d9fe79b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public ResponseEntity<List<StudentCredentialDistribution>> getStudentCredentials
logger.debug("getStudentCredentialsForUserRequestDisRun : ");
boolean isPenNumberSearch = studentSearchRequest.getPens() != null && !studentSearchRequest.getPens().isEmpty()
&& !studentSearchRequest.getPens().stream().filter(StringUtils::isNotBlank).toList().isEmpty();
boolean onlyWithNullDistributionDate = !isPenNumberSearch && studentSearchRequest.getGradDateFrom() == null && studentSearchRequest.getGradDateTo() == null;
boolean onlyWithNullDistributionDate = !isPenNumberSearch && studentSearchRequest.getGradDateFrom() == null && studentSearchRequest.getGradDateTo() == null && !StringUtils.equalsAnyIgnoreCase(credentialType, "OT", "RT");
return response.GET(commonService.getStudentCredentialsForUserRequestDisRun(credentialType,studentSearchRequest,onlyWithNullDistributionDate,accessToken.replace(BEARER, "")));
}

Expand Down

0 comments on commit d9fe79b

Please sign in to comment.