mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-45036 blocks: Update to the mentee block sql to incorporate additional name fields.
This commit is contained in:
parent
af8a43248e
commit
f3f60eb27b
@ -50,7 +50,8 @@ class block_mentees extends block_base {
|
||||
$this->content = new stdClass();
|
||||
|
||||
// get all the mentees, i.e. users you have a direct assignment to
|
||||
if ($usercontexts = $DB->get_records_sql("SELECT c.instanceid, c.instanceid, u.firstname, u.lastname
|
||||
$allusernames = get_all_user_name_fields(true, 'u');
|
||||
if ($usercontexts = $DB->get_records_sql("SELECT c.instanceid, c.instanceid, $allusernames
|
||||
FROM {role_assignments} ra, {context} c, {user} u
|
||||
WHERE ra.userid = ?
|
||||
AND ra.contextid = c.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user