Skip to content

Commit

Permalink
SEBSERV-555 should be fixed, testing on ralph
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Jul 1, 2024
1 parent 2f26021 commit b061780
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,6 @@ private Exam applyExamData(final Exam exam, final boolean deletion) {
if (!hasFullIntegration(exam.lmsSetupId)) {
return exam;
}
if (exam.examTemplateId == null) {
throw new IllegalStateException("Exam has no template id: " + exam.getName());
}

try {

Expand All @@ -569,7 +566,11 @@ private Exam applyExamData(final Exam exam, final boolean deletion) {
final String courseId = lmsAPITemplate.getCourseIdFromExam(exam);
final String quizId = lmsAPITemplate.getQuizIdFromExam(exam);

final String templateId = deletion ? null : String.valueOf(exam.examTemplateId);
final String templateId = deletion
? null
: exam.examTemplateId != null
? String.valueOf(exam.examTemplateId)
: null;
final String quitPassword = deletion ? null : examConfigurationValueService.getQuitPassword(exam.id);
final String quitLink = deletion ? null : examConfigurationValueService.getQuitLink(exam.id);

Expand Down

0 comments on commit b061780

Please sign in to comment.