Browse files

MDL-36589 Lesson Module: set correct answer_jump to next page in ques…

…tion import.
  • Loading branch information...
1 parent ff63a3a commit effbfda5265ea8b2d231f6cf83675c2f380a1256 @rwijaya rwijaya committed Nov 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/lesson/format.php
View
1 mod/lesson/format.php
@@ -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

0 comments on commit effbfda

Please sign in to comment.