From b09ac20b118f2f72e2dd4c61b65dbef66660634b Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Wed, 14 Nov 2012 16:14:52 +0800 Subject: [PATCH] MDL-36589 Lesson Module: set correct answer_jump to next page in question import. --- mod/lesson/format.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/lesson/format.php b/mod/lesson/format.php index f1027ba700a..9bbf4f55ca6 100644 --- a/mod/lesson/format.php +++ b/mod/lesson/format.php @@ -241,6 +241,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