MDL-36589 Lesson Module: set correct answer_jump to next page in question import.
authorRossiani Wijaya <rwijaya@moodle.com>
Wed, 14 Nov 2012 08:14:52 +0000 (16:14 +0800)
committerRossiani Wijaya <rwijaya@moodle.com>
Wed, 14 Nov 2012 08:18:00 +0000 (16:18 +0800)
mod/lesson/format.php

index 134c14b..9eb2c18 100644 (file)
@@ -262,6 +262,7 @@ function lesson_save_question_options($question, $lesson) {
             // The first answer should always be the correct answer
             $correctanswer = clone($defaultanswer);
             $correctanswer->answer = get_string('thatsthecorrectanswer', 'lesson');
+            $correctanswer->jumpto = LESSON_NEXTPAGE;
             $DB->insert_record("lesson_answers", $correctanswer);
 
             // The second answer should always be the wrong answer