Skip to content

Commit

Permalink
MDL-26587 Question : fixed restoring shortanswer where answers are mi…
Browse files Browse the repository at this point in the history
…ssing due to data error in mbz file.
  • Loading branch information
Aparup Banerjee authored and danpoltawski committed Jul 16, 2012
1 parent 4923e18 commit 5f3d7b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public function process_shortanswer($data) {
$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
Expand Down

0 comments on commit 5f3d7b1

Please sign in to comment.