]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6731 Can't save manual comment on a quiz question. I had missed one instance...
authortjhunt <tjhunt>
Fri, 6 Oct 2006 17:22:08 +0000 (17:22 +0000)
committertjhunt <tjhunt>
Fri, 6 Oct 2006 17:22:08 +0000 (17:22 +0000)
lib/questionlib.php

index 51b7b46febea0d1a9a6901ca9d8adf74899b531c..9b4494c0ce6b63b7a8bf238f151ecec91a14eb2e 100644 (file)
@@ -1188,7 +1188,7 @@ function question_process_comment($question, &$state, &$attempt, $comment, $grad
 
     // Update the comment and save it in the database
     $state->manualcomment = $comment;
-    if (!set_field('question_sessions', 'comment', $comment, 'attemptid', $attempt->uniqueid, 'questionid', $question->id)) {
+    if (!set_field('question_sessions', 'manualcomment', $comment, 'attemptid', $attempt->uniqueid, 'questionid', $question->id)) {
         error("Cannot save comment");
     }
     // If the teacher has changed the grade then update the attempt and the state