diff --git a/question/type/question.html b/question/type/question.html index 93b7bbe5642..42575de5ba3 100644 --- a/question/type/question.html +++ b/question/type/question.html @@ -3,6 +3,21 @@ * print_question() method. */ ?> + + + +
@@ -28,8 +43,18 @@ echo $comment; ?>
- + +
+ + \ No newline at end of file diff --git a/question/type/questiontype.php b/question/type/questiontype.php index a50ff8a9945..5f54fe01787 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -478,8 +478,8 @@ class default_questiontype { $commentlink = ''; if (isset($options->questioncommentlink)) { $strcomment = get_string('commentorgrade', 'quiz'); - $commentlink = ''; + $attempt = get_record('quiz_attempts', 'uniqueid', $state->attempt); // would just have $attempt->uniqueid = $state->attempt but review.php needs $attempt->id + $commentlink = "
id');\">$strcomment"; } $history = $this->history($question, $state, $number, $cmoptions, $options);