]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6077 - Teacher saving their grades destroys student essay! Merged from MOODLE_16...
authortjhunt <tjhunt>
Tue, 11 Jul 2006 16:14:23 +0000 (16:14 +0000)
committertjhunt <tjhunt>
Tue, 11 Jul 2006 16:14:23 +0000 (16:14 +0000)
mod/quiz/report/grading/report.php

index 5ced06074250a8f6d1b5a4d7374179b438e9c4ed..5aabe786072e0061802f5a6f726889d0632ca619 100644 (file)
@@ -71,7 +71,6 @@ class quiz_report extends quiz_default_report {
 
                 // If the state has changed save it and update the quiz grade
                 if ($state->changed) {
-                    $state->responses[''] = isset($state->responses['']) ? addslashes($state->responses['']) : ''; // should this go in save_question_session?
                     save_question_session($question, $state);
                     quiz_save_best_grade($quiz, $attempt->userid);
                 }