Skip to content

Commit

Permalink
Fix #7380
Browse files Browse the repository at this point in the history
  • Loading branch information
aplr committed Oct 15, 2023
1 parent 60927d0 commit 45f33b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public ResponseEntity<Exam> updateExam(@PathVariable Long courseId, @RequestBody
}

// NOTE: if the end date was changed, we need to update student exams and re-schedule exercises
if (!originalExam.getEndDate().equals(savedExam.getEndDate())) {
if (comparator.compare(originalExam.getEndDate(), savedExam.getEndDate()) != 0) {
int workingTimeChange = savedExam.getDuration() - originalExamDuration;
updateStudentExamsAndRescheduleExercises(examWithExercises, originalExamDuration, workingTimeChange);
}
Expand Down

0 comments on commit 45f33b2

Please sign in to comment.