@@ -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);