mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-6731 Can't save manual comment on a quiz question. I had missed one instance of the comment -> manualcomment column rename.
This commit is contained in:
parent
8ff134db82
commit
13835c77b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user