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:08:45 +00:00
parent bd39b6f226
commit bfc7353d96

View File

@ -250,7 +250,7 @@ abstract class grade_object {
$data->oldid = $this->id;
$data->source = $source;
$data->timemodified = time();
$data->userlogged = $USER->id;
$data->loggeduser = $USER->id;
$DB->insert_record($this->table.'_history', $data);
}
$this->notify_changed(true);
@ -309,7 +309,7 @@ abstract class grade_object {
$data->oldid = $this->id;
$data->source = $source;
$data->timemodified = time();
$data->userlogged = $USER->id;
$data->loggeduser = $USER->id;
$DB->insert_record($this->table.'_history', $data);
}