Skip to content

Commit

Permalink
Issue #SB-5980 feat:endDate validation while updating course batch
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIT KUMAR committed Aug 2, 2018
1 parent 8844016 commit d96a7c2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,7 @@ private static void validateUpdateBatchEndDate(Request request) {
String startDate = (String) request.getRequest().get(JsonKey.START_DATE);
String endDate = (String) request.getRequest().get(JsonKey.END_DATE);
format.setLenient(false);
if (request.getRequest().containsKey(JsonKey.END_DATE)
&& StringUtils.isNotEmpty(startDate)
&& request.getRequest().containsKey(JsonKey.START_DATE)
&& !StringUtils.isBlank(startDate)) {
if (StringUtils.isNotBlank(endDate) && StringUtils.isNotBlank(startDate)) {
Date batchStartDate = null;
Date batchEndDate = null;
try {
Expand Down

0 comments on commit d96a7c2

Please sign in to comment.