Skip to content

Commit

Permalink
quiz-data - Fix DB issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EJMFarrow committed Dec 2, 2024
1 parent a2eb63a commit abb5d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/external/export_question.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit abb5d9a

Please sign in to comment.