MDL-36061 gradebook: grade_item->refresh_grades doesn't propagate $userid
[moodle.git] / lib / grade / grade_item.php
index 12afe84..6ce395f 100644 (file)
@@ -1445,7 +1445,7 @@ class grade_item extends grade_object {
             $activity->modname    = $this->itemmodule;
             $activity->cmidnumber = $cm->idnumber;
 
-            grade_update_mod_grades($activity);
+            grade_update_mod_grades($activity, $userid);
         }
     }