Commit 2034f57f authored by Mihail Geshoski's avatar Mihail Geshoski
Browse files

MDL-52538 lesson: Grade info displayed while ongoing score disabled

parent 109aa076
......@@ -3031,7 +3031,7 @@ class lesson extends lesson_base {
$this->add_message(get_string('numberofpagesviewednotice', 'lesson', $a));
}
if (!$reviewmode && !$this->properties->retake) {
if (!$reviewmode && $this->properties->ongoing) {
$this->add_message(get_string("numberofcorrectanswers", "lesson", $gradeinfo->earned), 'notify');
if ($this->properties->grade != GRADE_TYPE_NONE) {
$a = new stdClass;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment