From 5e60643e1b2bac6751029210d17c90b5911b98b8 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 26 Jun 2006 11:23:32 +0000 Subject: [PATCH] Bug 5889 - Regrading a quiz wipes student answers. Thanks to Jean-Michel Vedrine for the fix. Merged from MOODLE_16_STABLE. --- lib/questionlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5