MDL-55912 mod_assign: Set grader details to the correct user.

This commit is contained in:
Adrian Greeve 2017-07-12 09:36:13 +08:00
parent 16a68a2f76
commit 0163e5d276

View File

@ -2329,7 +2329,7 @@ class assign {
$uniqueid = 0;
if ($submission->blindmarking && !$submission->revealidentities) {
if (empty($submission->recordid)) {
$uniqueid = self::get_uniqueid_for_user_static($submission->assignment, $user->id);
$uniqueid = self::get_uniqueid_for_user_static($submission->assignment, $grader->id);
} else {
$uniqueid = $submission->recordid;
}