MDL-32781: assignfeedback_comments plugin not loading previous comments

Was setting the wrong field names in the form.
This commit is contained in:
Damyon Wiese 2012-05-07 12:15:08 +08:00
parent e16e2300c5
commit 9f91316495

View File

@ -65,8 +65,8 @@ class assign_feedback_comments extends assign_feedback_plugin {
if ($grade) {
$feedbackcomments = $this->get_feedback_comments($grade->id);
if ($feedbackcomments) {
$data->feedbackcomments_editor['text'] = $feedbackcomments->commenttext;
$data->feedbackcomments_editor['format'] = $feedbackcomments->commentformat;
$data->assignfeedbackcomments_editor['text'] = $feedbackcomments->commenttext;
$data->assignfeedbackcomments_editor['format'] = $feedbackcomments->commentformat;
}
}