MDL-82797 question engine: gift import fix

This commit is contained in:
Justin Hunt
2025-06-11 11:58:23 +01:00
committed by Conn Warwicker
parent 812ef23c00
commit bd54d58d8a
+2 -2
View File
@@ -312,8 +312,8 @@ class qformat_default {
// function to handle this question
foreach (question_bank::get_all_qtypes() as $qtype) {
if (method_exists($qtype, $methodname)) {
if ($question = $qtype->$methodname($data, $question, $this, $extra)) {
return $question;
if ($importedquestion = $qtype->$methodname($data, $question, $this, $extra)) {
return $importedquestion;
}
}
}