Skip to content

Commit

Permalink
Merge pull request #282 from niharikasingh84/SB-13831-UpdateEndDateFix
Browse files Browse the repository at this point in the history
Update End Date Fix
  • Loading branch information
rahul-tarento authored Jul 24, 2019
2 parents 66817a9 + 6f800c7 commit 014ab68
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,9 @@ private void validateBatchEnrollmentEndDate(
ResponseCode.enrollmentEndDateEndError.getErrorMessage(),
ResponseCode.CLIENT_ERROR.getResponseCode());
}
if (requestedEnrollmentEndDate != null && requestedEnrollmentEndDate.before(todayDate)) {
if (requestedEnrollmentEndDate != null
&& !requestedEnrollmentEndDate.equals(existingEnrollmentEndDate)
&& requestedEnrollmentEndDate.before(todayDate)) {
throw new ProjectCommonException(
ResponseCode.enrollmentEndDateUpdateError.getErrorCode(),
ResponseCode.enrollmentEndDateUpdateError.getErrorMessage(),
Expand Down

0 comments on commit 014ab68

Please sign in to comment.