From 6e49714287d61c1c6a6978393acda90e6aeac74e Mon Sep 17 00:00:00 2001 From: mark-nielsen Date: Sat, 8 Apr 2006 10:29:25 +0000 Subject: [PATCH] Changed the Make comment or override grade link display the comment field and grade field in review.php instead of popup --- question/type/question.html | 33 +++++++++++++++++++++++++++++++-- question/type/questiontype.php | 4 ++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/question/type/question.html b/question/type/question.html index 93b7bbe564..42575de5ba 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 a50ff8a994..5f54fe0178 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); -- 2.39.5