From abb5d9a888fdd4c218254978180646aebc4b1e77 Mon Sep 17 00:00:00 2001 From: Edmund Farrow Date: Mon, 2 Dec 2024 13:20:30 +0000 Subject: [PATCH] quiz-data - Fix DB issue --- classes/external/export_question.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/external/export_question.php b/classes/external/export_question.php index 49b8839..4bd61a9 100644 --- a/classes/external/export_question.php +++ b/classes/external/export_question.php @@ -98,8 +98,8 @@ public static function execute(string $questionbankentryid, bool $includecategor case \CONTEXT_MODULE: $course = $DB->get_record_sql(" SELECT c.* - FROM mdl_course_modules cm - JOIN mdl_course c ON c.id = cm.course + FROM {course_modules} cm + JOIN {course} c ON c.id = cm.course WHERE cm.id = :moduleid", ['moduleid' => $questiondata->instanceid], MUST_EXIST);