Permalink
Browse files

gradebook MDL-23928 fixed grade history recording to correctly save t…

…he user id of the user making the change pt 2
  • Loading branch information...
1 parent ca0cd9a commit 3318054d958b2bf53e00cdd02733f38e90d5895c Andrew Davis committed Sep 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/grade/grade_object.php
@@ -212,7 +212,7 @@ function update($source=null) {
$data->oldid = $this->id;
$data->source = $source;
$data->timemodified = time();
- $data->userlogged = $USER->id;
+ $data->loggeduser = $USER->id;
insert_record($this->table.'_history', addslashes_recursive($data));
}
@@ -242,7 +242,7 @@ function delete($source=null) {
$data->oldid = $this->id;
$data->source = $source;
$data->timemodified = time();
- $data->userlogged = $USER->id;
+ $data->loggeduser = $USER->id;
insert_record($this->table.'_history', addslashes_recursive($data));
}
return true;

0 comments on commit 3318054

Please sign in to comment.