mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
userid must be set in new grade too
This commit is contained in:
parent
478f4322fa
commit
3b34f698b5
@ -357,6 +357,7 @@ class grade_report_grader extends grade_report {
|
||||
if (!isset($this->grades[$userid][$itemid])) {
|
||||
$this->grades[$userid][$itemid] = new grade_grade();
|
||||
$this->grades[$userid][$itemid]->itemid = $itemid;
|
||||
$this->grades[$userid][$itemid]->userid = $userid;
|
||||
$this->grades[$userid][$itemid]->grade_item =& $this->gtree->items[$itemid]; // db caching
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user