Skip to content

Commit

Permalink
Merge branch 'MDL-26587' of git://github.com/nebgor/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 16, 2012
2 parents 0e7dd4f + 4b92f65 commit 7e867bb
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 7e867bb

Please sign in to comment.