Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-40195: mod_assign: Display grades when quickgrading to 2 decimal …

…places
  • Loading branch information...
commit d79c15550f08425d77b268fe41ad978a4e70a8ef 1 parent b5906ea
@aolley aolley authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assign/locallib.php
View
2  mod/assign/locallib.php
@@ -1034,7 +1034,7 @@ public function display_grade($grade, $editing, $userid=0, $modified=0) {
if ($grade < 0) {
$displaygrade = '';
} else {
- $displaygrade = format_float($grade);
+ $displaygrade = format_float($grade, 2);
}
$o .= '<label class="accesshide" for="quickgrade_' . $userid . '">' . get_string('usergrade', 'assign') . '</label>';
$o .= '<input type="text" id="quickgrade_' . $userid . '" name="quickgrade_' . $userid . '" value="' .
Please sign in to comment.
Something went wrong with that request. Please try again.