mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-31776 - lib: Alternate name fields - update of gradebook sql query.
This commit is contained in:
parent
38dff99e64
commit
12b4487ef3
@ -262,7 +262,8 @@ class grade_report_grader extends grade_report {
|
||||
}
|
||||
}
|
||||
if ($errorstr) {
|
||||
$user = $DB->get_record('user', array('id' => $userid), 'id, firstname, lastname');
|
||||
$userfields = 'id, ' . get_all_user_name_fields(true);
|
||||
$user = $DB->get_record('user', array('id' => $userid), $userfields);
|
||||
$gradestr = new stdClass();
|
||||
$gradestr->username = fullname($user);
|
||||
$gradestr->itemname = $gradeitem->get_name();
|
||||
|
Loading…
x
Reference in New Issue
Block a user