diff --git a/actors/sunbird-lms-mw/actors/common/src/main/java/org/sunbird/learner/actors/coursebatch/CourseBatchManagementActor.java b/actors/sunbird-lms-mw/actors/common/src/main/java/org/sunbird/learner/actors/coursebatch/CourseBatchManagementActor.java index dd7e22fbff..948df5432a 100644 --- a/actors/sunbird-lms-mw/actors/common/src/main/java/org/sunbird/learner/actors/coursebatch/CourseBatchManagementActor.java +++ b/actors/sunbird-lms-mw/actors/common/src/main/java/org/sunbird/learner/actors/coursebatch/CourseBatchManagementActor.java @@ -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(),