From: tjhunt Date: Fri, 6 Oct 2006 17:22:08 +0000 (+0000) Subject: MDL-6731 Can't save manual comment on a quiz question. I had missed one instance... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=13835c77b6e24776c5c803cb0b2c8a075be419fa;p=moodle.git MDL-6731 Can't save manual comment on a quiz question. I had missed one instance of the comment -> manualcomment column rename. --- diff --git a/lib/questionlib.php b/lib/questionlib.php index 51b7b46feb..9b4494c0ce 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -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