From 6f800c733a7e0f029f0144e4f2c5544ffa1b76cf Mon Sep 17 00:00:00 2001 From: niharikasingh84 Date: Wed, 24 Jul 2019 13:20:27 +0530 Subject: [PATCH] Update End Date Fix --- .../actors/coursebatch/CourseBatchManagementActor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(),