Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…a cell.
  • Loading branch information...
commit da45306da58f535f54c30a6e6f58b32ea35d632c 1 parent 24654d9
@timhunt timhunt authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/quiz/renderer.php
View
5 mod/quiz/renderer.php
@@ -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[] = '';
Please sign in to comment.
Something went wrong with that request. Please try again.