From 465a9b4f06fe6b9b095b380f120e16600ee92306 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 12 Aug 2010 02:08:51 +0000 Subject: [PATCH] lesson MDL-23525 committing this fix after its passed the tests in the bug/QA. - this fix allows the student to traverse the complete review paths. it only sets the continue button to go to the end of lesson when the page has no nextpage (last page). --- mod/lesson/continue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lesson/continue.php b/mod/lesson/continue.php index 5cc544dcf88..5e93a14c861 100644 --- a/mod/lesson/continue.php +++ b/mod/lesson/continue.php @@ -71,7 +71,7 @@ $result = $page->record_attempt($context); if (isset($USER->modattempts[$lesson->id])) { // make sure if the student is reviewing, that he/she sees the same pages/page path that he/she saw the first time - if ($USER->modattempts[$lesson->id] == $page->id) { // remember, this session variable holds the pageid of the last page that the user saw + if ($USER->modattempts[$lesson->id] == $page->id && $page->nextpageid == 0) { // remember, this session variable holds the pageid of the last page that the user saw $result->newpageid = LESSON_EOL; } else { $nretakes = $DB->count_records("lesson_grades", array("lessonid"=>$lesson->id, "userid"=>$USER->id)); -- 2.43.0