mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-78622_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
2811bedd48
@ -2352,9 +2352,11 @@ function quiz_add_quiz_question($questionid, $quiz, $page = 0, $maxmark = null)
|
||||
JOIN {question_bank_entries} qbe ON qbe.id = qr.questionbankentryid
|
||||
WHERE slot.quizid = ?
|
||||
AND qr.component = ?
|
||||
AND qr.questionarea = ?";
|
||||
AND qr.questionarea = ?
|
||||
AND qr.usingcontextid = ?";
|
||||
|
||||
$questionslots = $DB->get_records_sql($sql, [$quiz->id, 'mod_quiz', 'slot']);
|
||||
$questionslots = $DB->get_records_sql($sql, [$quiz->id, 'mod_quiz', 'slot',
|
||||
context_module::instance($quiz->cmid)->id]);
|
||||
|
||||
$currententry = get_question_bank_entry($questionid);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user