mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-45071 mod_quiz: retrieve all the name fields when deleting a user override
This commit is contained in:
parent
069fe267b6
commit
4e651893b7
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user