Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…tion import.
  • Loading branch information...
commit 1cf1a1737cd23370a521af6dae487ed796ac2513 1 parent 2b3dbc7
@rwijaya rwijaya authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.