Skip to content

Commit

Permalink
MDL-42225 badges: retrieve all the name fields when viewing the recip…
Browse files Browse the repository at this point in the history
…ient list
  • Loading branch information
mdjnelson committed Oct 14, 2013
1 parent f8eff10 commit 61f039c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion badges/recipients.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
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
Expand Down

0 comments on commit 61f039c

Please sign in to comment.