From 67d0052acc72aa753c059920348878c1263f5dd4 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 2 Mar 2023 13:54:15 +0100 Subject: [PATCH] SEBSERV-301 fix use quiz id instead of quiz coursemodule --- .../webservice/servicelayer/lms/impl/moodle/MoodleUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleUtils.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleUtils.java index 8a813131..a8d32da3 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleUtils.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/moodle/MoodleUtils.java @@ -194,7 +194,7 @@ public abstract class MoodleUtils { additionalAttrs.put(QuizData.ATTR_ADDITIONAL_TIME_LIMIT, String.valueOf(courseQuizData.time_limit)); return new QuizData( MoodleUtils.getInternalQuizId( - courseQuizData.course_module, + courseQuizData.id, courseData.id, courseData.short_name, courseData.idnumber), @@ -227,7 +227,7 @@ public abstract class MoodleUtils { final CourseData course = finalCourseDataRef.get(quiz.course); if (course != null) { final String internalQuizId = MoodleUtils.getInternalQuizId( - quiz.course_module, + quiz.id, course.id, course.short_name, course.idnumber);