MDL-17693: get_role_users - add lastaccess & mnethostid to the list of default fields to return. These are used by messaging/emailing. (Merged from MOODLE_19_STABLE)

This commit is contained in:
mjollnir_ 2008-12-19 08:56:25 +00:00
parent a65cfba54d
commit 0e4e1a43f1

View File

@ -5269,7 +5269,7 @@ function get_role_users($roleid, $context, $parent=false, $fields='',
$fields = 'u.id, u.confirmed, u.username, u.firstname, u.lastname, '.
'u.maildisplay, u.mailformat, u.maildigest, u.email, u.city, '.
'u.country, u.picture, u.idnumber, u.department, u.institution, '.
'u.emailstop, u.lang, u.timezone, r.name as rolename';
'u.emailstop, u.lang, u.timezone, u.lastaccess, u.mnethostid, r.name as rolename';
}
// whether this assignment is hidden