MDL-79279 qformat_xml: multianswer import should support idnumber

Fix suggested by Georg Maißer.
This commit is contained in:
Tim Hunt
2023-10-03 20:42:23 +01:00
parent 48d464516a
commit eff2ee3103
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -541,6 +541,8 @@ class qformat_xml extends qformat_default {
$qo->questiontext .= ' <img src="@@PLUGINFILE@@/' . $filename . '" />';
}
$qo->idnumber = $this->getpath($question, ['#', 'idnumber', 0, '#'], null);
// Restore files in generalfeedback.
$generalfeedback = $this->import_text_with_files($question,
array('#', 'generalfeedback', 0), '', $this->get_format($qo->questiontextformat));