mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-78889 gradereport_user: Fix pass/fail icon for totals
When the category has a 'grade to pass' set, the pass/fail icon was displayed even when the category total grade values was hidden.
This commit is contained in:
parent
7b9a4eeca5
commit
7721ddb679
@ -713,7 +713,7 @@ class user extends grade_report {
|
||||
$gradestatusclass = '';
|
||||
$gradepassicon = '';
|
||||
$ispassinggrade = $gradegrade->is_passed($gradegrade->grade_item);
|
||||
if (!is_null($ispassinggrade)) {
|
||||
if (!is_null($gradeval) && !is_null($ispassinggrade)) {
|
||||
$gradestatusclass = $ispassinggrade ? 'gradepass' : 'gradefail';
|
||||
if ($ispassinggrade) {
|
||||
$gradepassicon = $OUTPUT->pix_icon(
|
||||
|
Loading…
x
Reference in New Issue
Block a user