fixed exam lms availability update
This commit is contained in:
parent
922149e740
commit
c99922c7ef
1 changed files with 4 additions and 1 deletions
|
@ -410,11 +410,14 @@ class ExamUpdateHandler {
|
||||||
.getLmsAPITemplate(lmsSetupId)
|
.getLmsAPITemplate(lmsSetupId)
|
||||||
.getOrThrow();
|
.getOrThrow();
|
||||||
|
|
||||||
|
final Exam exam = exams.get(quizId);
|
||||||
if (!lmsTemplate.getType().features.contains(Features.COURSE_RECOVERY)) {
|
if (!lmsTemplate.getType().features.contains(Features.COURSE_RECOVERY)) {
|
||||||
|
if (exam.lmsAvailable == null || exam.isLmsAvailable()) {
|
||||||
|
this.examDAO.markLMSAvailability(quizId, false, updateId);
|
||||||
|
}
|
||||||
throw new UnsupportedOperationException("No Course Recovery");
|
throw new UnsupportedOperationException("No Course Recovery");
|
||||||
}
|
}
|
||||||
|
|
||||||
final Exam exam = exams.get(quizId);
|
|
||||||
final int attempts = Integer.parseInt(this.additionalAttributesDAO.getAdditionalAttribute(
|
final int attempts = Integer.parseInt(this.additionalAttributesDAO.getAdditionalAttribute(
|
||||||
EntityType.EXAM,
|
EntityType.EXAM,
|
||||||
exam.id,
|
exam.id,
|
||||||
|
|
Loading…
Reference in a new issue