MDL-36184: Assignment quickgrading should only update lastmodified dates for modified...
authorDamyon Wiese <damyonw@moodle.com>
Wed, 21 Nov 2012 03:10:12 +0000 (11:10 +0800)
committerDamyon Wiese <damyonw@moodle.com>
Wed, 21 Nov 2012 03:14:29 +0000 (11:14 +0800)
mod/assign/locallib.php

index 3d44847..d187b15 100644 (file)
@@ -2640,7 +2640,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) {