MDL-85062 mod_assign: Format penalized grades in attempts history

Formats the output of the penalised grades shown in the
'Previous attempts' for advanced grading methods for consistency
with other sections/areas where this information is displayed.
This commit is contained in:
Mihail Geshoski
2025-04-08 17:43:33 +08:00
parent 14bbc68d59
commit dc82696abf
+1 -1
View File
@@ -5650,7 +5650,7 @@ class assign {
'overridden' => $userid > 0 ? $this->get_grade_item()->get_grade($userid)->overridden : 0,
], false)
);
$gradeoutput = $penaltyindicator . $penalisedgrade;
$gradeoutput = $penaltyindicator . format_float($penalisedgrade, $this->get_grade_item()->get_decimals());
$grade->gradefordisplay = $controller->render_grade($PAGE, $grade->id, $gradingitem, $gradeoutput, $cangrade);
} else {