From: tjhunt Date: Mon, 26 Jun 2006 11:23:32 +0000 (+0000) Subject: Bug 5889 - Regrading a quiz wipes student answers. Thanks to Jean-Michel Vedrine... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5e60643e1b2bac6751029210d17c90b5911b98b8;p=moodle.git Bug 5889 - Regrading a quiz wipes student answers. Thanks to Jean-Michel Vedrine for the fix. Merged from MOODLE_16_STABLE. --- diff --git a/lib/questionlib.php b/lib/questionlib.php index f51e3f084b..113af9c17a 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -860,7 +860,7 @@ function regrade_question_in_attempt($question, $attempt, $cmoptions, $verbose=f $action->event = $states[$j]->event; } - if ($action->event = QUESTION_EVENTMANUALGRADE) { + if ($action->event == QUESTION_EVENTMANUALGRADE) { question_process_comment($question, $replaystate, $attempt, $states[$j]->comment, $states[$j]->grade); } else {