fix validation
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ public class TimeslotValidator implements Validator {
|
||||
timeslot.setStarts(InstantHelper.truncate(timeslot.getStarts(), ChronoUnit.SECONDS));
|
||||
timeslot.setEnds(InstantHelper.truncate(timeslot.getEnds(), ChronoUnit.SECONDS));
|
||||
|
||||
if (timeslot.getStarts().isAfter(timeslot.getStarts())) {
|
||||
if (timeslot.getStarts().isAfter(timeslot.getEnds())) {
|
||||
errors.rejectValue("starts", "NOT_VALID");
|
||||
errors.rejectValue("ends", "NOT_VALID");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user