mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +02:00
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:
parent
dd4a1bca28
commit
3e3e5a4030
11 changed files with 27 additions and 19 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue