MDL-47266 quiz: fix restore log message.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 16 Sep 2014 13:41:30 +0000 (14:41 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 18 Sep 2014 10:04:28 +0000 (11:04 +0100)
mod/quiz/backup/moodle2/restore_quiz_stepslib.php

index 1cd3abb..de7f1eb 100644 (file)
@@ -265,7 +265,7 @@ class restore_quiz_activity_structure_step extends restore_questions_activity_st
             // There was a question_instance in the backup file for a question
             // that was not acutally in the quiz. Drop it.
             $this->log('question ' . $data->questionid . ' was associated with quiz ' .
-                    $quiz->id . ' but not actually used. ' .
+                    $this->get_new_parentid('quiz') . ' but not actually used. ' .
                     'The instance has been ignored.', backup::LOG_INFO);
             return;
         }