]> git.mjollnir.org Git - moodle.git/commitdiff
grade_grade does not have itemid initialized in grader report
authortoyomoyo <toyomoyo>
Thu, 18 Oct 2007 07:09:31 +0000 (07:09 +0000)
committertoyomoyo <toyomoyo>
Thu, 18 Oct 2007 07:09:31 +0000 (07:09 +0000)
grade/report/grader/lib.php

index f4bd9557985bdc2160ed43eb81c77e79cda7965b..76df5b4bfa53a5a25b0f203c770e50e664ced19c 100644 (file)
@@ -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
                 }
             }