Permalink
Browse files

MDL-28996 Quiz view page list of attempts table is sometimes missing …

…a cell.
  • Loading branch information...
1 parent 24654d9 commit da45306da58f535f54c30a6e6f58b32ea35d632c @timhunt timhunt committed Aug 18, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/quiz/renderer.php
View
@@ -761,8 +761,9 @@ public function view_table($quiz, $context, $viewobj) {
}
$row[] = $datecompleted;
- if ($viewobj->markcolumn && $attempt->timefinish > 0) {
- if ($attemptoptions->marks >= question_display_options::MARK_AND_MAX) {
+ if ($viewobj->markcolumn) {
+ if ($attemptoptions->marks >= question_display_options::MARK_AND_MAX &&
+ $attempt->timefinish > 0) {
$row[] = quiz_format_grade($quiz, $attempt->sumgrades);
} else {
$row[] = '';

0 comments on commit da45306

Please sign in to comment.