MDL-36589 Lesson Module: set correct answer_jump to next page in question import.

This commit is contained in:
Rossiani Wijaya
2012-11-14 16:14:52 +08:00
parent 8ccaa296fa
commit b09ac20b11
+1
View File
@@ -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