From 5e85583c00a226963aabc0024399cb881c2f113f Mon Sep 17 00:00:00 2001 From: Leon Stringer Date: Tue, 29 Oct 2024 08:11:38 +0000 Subject: [PATCH] CTP-3651 Fix: decimal places on marker form Respect grade item's decimal place setting for "Mark out of ..." field. --- 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 da3d3292d0515..e23b73dd00eee 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -4175,7 +4175,7 @@ protected function view_single_grading_panel($args) { } if ($record = $DB->get_record('assign_mark', ['gradeid' => $grade->id, 'marker' => $USER->id])) { - $data->mark = $record->mark; + $data->mark = format_float($record->mark, $this->get_grade_item()->get_decimals()); } } else { $data = new stdClass();