Merge branch 'MDL-53239_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Dan Poltawski 2016-03-21 14:12:10 +08:00
commit 5821479ef6

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();