Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.

I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.
This commit is contained in:
tjhunt 2006-08-24 16:44:15 +00:00
parent dd4a1bca28
commit 3e3e5a4030
11 changed files with 27 additions and 19 deletions

View file

@ -367,8 +367,8 @@ class quiz_report extends quiz_default_report {
$options = quiz_get_reviewoptions($quiz, $attempt, true);
unset($options->questioncommentlink);
$copy = $state->comment;
$state->comment = '';
$copy = $state->manualcomment;
$state->manualcomment = '';
$options->readonly = 1;
@ -381,7 +381,7 @@ class quiz_report extends quiz_default_report {
$prefix = "manualgrades[$attempt->uniqueid]";
$grade = round($state->last_graded->grade, 3);
$state->comment = $copy;
$state->manualcomment = $copy;
include($CFG->dirroot . '/question/comment.html');