MDL-32781: assignfeedback_comments plugin not loading previous comments
authorDamyon Wiese <damyon.wiese@netspot.com.au>
Mon, 7 May 2012 04:15:08 +0000 (12:15 +0800)
committerDamyon Wiese <damyon.wiese@netspot.com.au>
Mon, 7 May 2012 04:15:08 +0000 (12:15 +0800)
Was setting the wrong field names in the form.

mod/assign/feedback/comments/locallib.php

index f4eea92..7f97175 100644 (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;
             }
         }