Skip to content

Commit

Permalink
MFC: userid must be set in new grade too
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 18, 2007
1 parent 1914e3a commit 1e5d9d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grade/report/grader/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ function load_final_grades() {
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
}
}
Expand Down

0 comments on commit 1e5d9d5

Please sign in to comment.