Skip to content

Commit

Permalink
MDL-63800 mod_assign: don't show grade if not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Nov 5, 2018
1 parent bebef89 commit e6a93dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/assign/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,9 @@ public function render_assign_attempt_history(assign_attempt_history $history) {
$grade = null;
foreach ($history->grades as $onegrade) {
if ($onegrade->attemptnumber == $submission->attemptnumber) {
$grade = $onegrade;
if ($onegrade->grade != ASSIGN_GRADE_NOT_SET) {
$grade = $onegrade;
}
break;
}
}
Expand Down

0 comments on commit e6a93dc

Please sign in to comment.