Skip to content

Commit

Permalink
CTP-3651 Fix: decimal places on marker form
Browse files Browse the repository at this point in the history
Respect grade item's decimal place setting for "Mark out of ..." field.
  • Loading branch information
leonstr committed Oct 29, 2024
1 parent b6d10e3 commit 5e85583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e85583

Please sign in to comment.