Merge branch 'MDL-36589_m22' of git://github.com/rwijaya/moodle into MOODLE_22_STABLE

This commit is contained in:
Sam Hemelryk
2012-11-19 14:55:13 +13:00
+1
View 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