MDL-45071 mod_quiz: retrieve all the name fields when deleting a user override

This commit is contained in:
Mark Nelson 2014-04-13 18:41:58 -07:00
parent 069fe267b6
commit 4e651893b7

View File

@ -83,8 +83,9 @@ if ($override->groupid) {
$group = $DB->get_record('groups', array('id' => $override->groupid), 'id, name');
$confirmstr = get_string("overridedeletegroupsure", "quiz", $group->name);
} else {
$namefields = get_all_user_name_fields(true);
$user = $DB->get_record('user', array('id' => $override->userid),
'id, firstname, lastname');
'id, ' . $namefields);
$confirmstr = get_string("overridedeleteusersure", "quiz", fullname($user));
}