MDL-53239 grader report: Add all names to error msg

This commit is contained in:
David Monllao 2016-02-25 15:02:01 +08:00
parent e8952c5951
commit 01f4ea8cce

View File

@ -91,7 +91,7 @@ switch ($action) {
}
if ($errorstr) {
$user = $DB->get_record('user', array('id' => $userid), 'id, firstname, lastname');
$user = $DB->get_record('user', array('id' => $userid), 'id, ' . get_all_user_name_fields(true));
$gradestr = new stdClass();
$gradestr->username = fullname($user);
$gradestr->itemname = $grade_item->get_name();