From 3b34f698b51b55466fda521b5292483cd9a04967 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 18 Oct 2007 10:08:26 +0000 Subject: [PATCH] userid must be set in new grade too --- grade/report/grader/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 76df5b4bfa5..20f2ab403c9 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -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 } }