mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-42225 badges: retrieve all the name fields when viewing the recipient list
This commit is contained in:
parent
f8eff10319
commit
61f039ce4b
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ if ($badge->has_manual_award_criteria() && has_capability('moodle/badges:awardba
|
|||
echo $OUTPUT->box($OUTPUT->single_button($url, get_string('award', 'badges')), 'clearfix mdl-align');
|
||||
}
|
||||
|
||||
$sql = "SELECT b.userid, b.dateissued, b.uniquehash, u.firstname, u.lastname
|
||||
$namefields = get_all_user_name_fields(true, 'u');
|
||||
$sql = "SELECT b.userid, b.dateissued, b.uniquehash, $namefields
|
||||
FROM {badge_issued} b INNER JOIN {user} u
|
||||
ON b.userid = u.id
|
||||
WHERE b.badgeid = :badgeid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue