mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
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:
parent
bd39b6f226
commit
bfc7353d96
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user