question flags MDL-22643 Manually commenting should not reset the flag state.
This commit is contained in:
@@ -1943,6 +1943,7 @@ function question_process_comment($question, &$state, &$attempt, $comment, $grad
|
||||
// Update the comment and save it in the database
|
||||
$comment = trim($comment);
|
||||
$state->manualcomment = $comment;
|
||||
$state->newflaggedstate = $state->flagged;
|
||||
if (!$DB->set_field('question_sessions', 'manualcomment', $comment, array('attemptid'=>$attempt->uniqueid, 'questionid'=>$question->id))) {
|
||||
return get_string('errorsavingcomment', 'question', $question);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user