Merge branch 'MDL-36184-master' of git://github.com/damyon/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 27 Nov 2012 05:58:20 +0000 (13:58 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 27 Nov 2012 05:58:20 +0000 (13:58 +0800)
mod/assign/locallib.php

index fed73c7..9a13f6d 100644 (file)
@@ -3475,7 +3475,7 @@ class assign {
         $modifiedusers = array();
         foreach ($currentgrades as $current) {
             $modified = $users[(int)$current->userid];
-            $grade = $this->get_user_grade($userid, false);
+            $grade = $this->get_user_grade($modified->userid, false);
 
             // check to see if the outcomes were modified
             if ($CFG->enableoutcomes) {