From dc82696abf970edb9f9b617ea3f85fd3c5787091 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Mon, 7 Apr 2025 22:49:50 +0800 Subject: [PATCH] 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. --- mod/assign/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 6ec5b8249fe..d91acca3d38 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -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 {