]> git.mjollnir.org Git - moodle.git/commitdiff
Bug 5889 - Regrading a quiz wipes student answers. Thanks to Jean-Michel Vedrine...
authortjhunt <tjhunt>
Mon, 26 Jun 2006 11:23:32 +0000 (11:23 +0000)
committertjhunt <tjhunt>
Mon, 26 Jun 2006 11:23:32 +0000 (11:23 +0000)
lib/questionlib.php

index f51e3f084b52dffc3b94c2f8d64ca13966e5dfbd..113af9c17a08efffe1fe6dc1934161832699b0b6 100644 (file)
@@ -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 {