Skip to content

Commit

Permalink
Update End Date Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niharikasingh84 committed Jul 24, 2019
1 parent 65d5e57 commit 6f800c7
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 6f800c7

Please sign in to comment.