assignment MDL-24106 some assignment changes were left out for offline assignment...
authorAparup Banerjee <nebgor@gmail.com>
Thu, 16 Sep 2010 03:15:41 +0000 (03:15 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Thu, 16 Sep 2010 03:15:41 +0000 (03:15 +0000)
mod/assignment/type/offline/assignment.class.php

index fb99b73..83b0cbe 100644 (file)
@@ -66,9 +66,8 @@ class assignment_offline extends assignment_base {
         if (!$grading_info->items[0]->grades[$feedback->userid]->locked and
             !$grading_info->items[0]->grades[$feedback->userid]->overridden) {
 
         if (!$grading_info->items[0]->grades[$feedback->userid]->locked and
             !$grading_info->items[0]->grades[$feedback->userid]->overridden) {
 
-            $submission->grade      = $feedback->grade;
-            $submission->submissioncomment    = $feedback->submissioncomment;
-            $submission->format     = $feedback->format;
+            $submission->grade      = $feedback->xgrade;
+            $submission->submissioncomment    = $feedback->submissioncomment_editor['text'];
             $submission->teacher    = $USER->id;
             $mailinfo = get_user_preferences('assignment_mailinfo', 0);
             if (!$mailinfo) {
             $submission->teacher    = $USER->id;
             $mailinfo = get_user_preferences('assignment_mailinfo', 0);
             if (!$mailinfo) {