mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 00:12:42 +02:00
MDL-26587 Question : fixed restoring shortanswer where answers are missing due to data error in mbz file.
This commit is contained in:
parent
d71b79a406
commit
4b92f65351
@ -68,8 +68,8 @@ class restore_qtype_shortanswer_plugin extends restore_qtype_plugin {
|
||||
$questioncreated = $this->get_mappingid('question_created', $oldquestionid) ? true : false;
|
||||
|
||||
// If the question has been created by restore, we need to create its
|
||||
// question_shortanswer too
|
||||
if ($questioncreated) {
|
||||
// question_shortanswer too, if they are defined (the gui should ensure this).
|
||||
if ($questioncreated && !empty($data->answers)) {
|
||||
// Adjust some columns
|
||||
$data->question = $newquestionid;
|
||||
// Map sequence of question_answer ids
|
||||
|
Loading…
x
Reference in New Issue
Block a user