From 6682e3f745787755f053719c93f1e2d4363827ff Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Mon, 22 Dec 2014 21:22:21 +0100 Subject: [PATCH] MDL-38222 mod_lesson: Error in Lesson Cluster for Unseen Questions --- mod/lesson/locallib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 78a0527f9a9..a1685e309e7 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -1503,6 +1503,9 @@ class lesson extends lesson_base { $found = true; } else if ($page->qtype == LESSON_PAGE_ENDOFCLUSTER) { $exitjump = $DB->get_field("lesson_answers", "jumpto", array("pageid" => $page->id, "lessonid" => $this->properties->id)); + if ($exitjump == LESSON_NEXTPAGE) { + $exitjump = $lessonpages[$page->id]->nextpageid; + } break; } }