mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
grade_grade does not have itemid initialized in grader report
This commit is contained in:
parent
cb8cb8bf88
commit
478f4322fa
@ -356,6 +356,7 @@ class grade_report_grader extends grade_report {
|
||||
foreach ($this->gtree->items as $itemid=>$unused) {
|
||||
if (!isset($this->grades[$userid][$itemid])) {
|
||||
$this->grades[$userid][$itemid] = new grade_grade();
|
||||
$this->grades[$userid][$itemid]->itemid = $itemid;
|
||||
$this->grades[$userid][$itemid]->grade_item =& $this->gtree->items[$itemid]; // db caching
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user