Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109aa07
)
MDL-52538 lesson: Grade info displayed while ongoing score disabled
author
Mihail Geshoski
<mihail@moodle.com>
Tue, 12 Dec 2017 00:54:51 +0000
(08:54 +0800)
committer
Mihail Geshoski
<mihail@moodle.com>
Tue, 12 Dec 2017 00:54:51 +0000
(08:54 +0800)
mod/lesson/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/lesson/locallib.php
b/mod/lesson/locallib.php
index
5eb0341
..
15ee444
100644
(file)
--- a/
mod/lesson/locallib.php
+++ b/
mod/lesson/locallib.php
@@
-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;