Permalink
Browse files

MDL-36223 Assign: User outline report grade display

Use str_long_grade for user outline report because it handles scales and
no grade.

Thanks to Jean-Daniel Descoteaux for suggesting this fix.
  • Loading branch information...
damyon committed May 2, 2013
1 parent eb244d3 commit 4d69adc76066b54c772b3c9113ad24dbf7a430dd
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/lib.php
View
@@ -1042,11 +1042,11 @@ function assign_user_outline($course, $user, $coursemodule, $assignment) {
$gradingitem = $gradinginfo->items[0];
$gradebookgrade = $gradingitem->grades[$user->id];
- if (!$gradebookgrade) {
+ if (empty($gradebookgrade->str_long_grade)) {
return null;
}
$result = new stdClass();
- $result->info = get_string('outlinegrade', 'assign', $gradebookgrade->grade);
+ $result->info = get_string('outlinegrade', 'assign', $gradebookgrade->str_long_grade);
$result->time = $gradebookgrade->dategraded;
return $result;

0 comments on commit 4d69adc

Please sign in to comment.