MDL-36829: Fix outcome value not being saved when grading a submission
authorKirill Astashov <kirill.astashov@netspot.com.au>
Mon, 26 Nov 2012 05:53:02 +0000 (16:23 +1030)
committerKirill Astashov <kirill.astashov@netspot.com.au>
Mon, 26 Nov 2012 05:53:02 +0000 (16:23 +1030)
mod/assign/locallib.php

index 7a8dcae..1ed5379 100644 (file)
@@ -4312,9 +4312,11 @@ class assign {
                 foreach ($members as $member) {
                     // User may exist in multple groups (which should put them in the default group).
                     $this->apply_grade_to_user($formdata, $member->id);
+                    $this->process_outcomes($member->id, $formdata);
                 }
             } else {
                 $this->apply_grade_to_user($formdata, $userid);
+                $this->process_outcomes($userid, $formdata);
             }
         } else {
             return false;