gradebook MDL-23928 fixed grade history recording to correctly save the user id of the user making the change pt 2

This commit is contained in:
Andrew Davis
2010-09-17 03:09:29 +00:00
parent ca0cd9a253
commit 3318054d95
+2 -2
View File
@@ -212,7 +212,7 @@ class grade_object {
$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 @@ class grade_object {
$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;