mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
survey MDL-23324 made use of user_picture::fields()
This commit is contained in:
parent
ef4ba975f9
commit
9b8b9b7379
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,8 @@ function survey_get_responses($surveyid, $groupid, $groupingid) {
|
||||||
$groupsjoin = "";
|
$groupsjoin = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return $DB->get_records_sql("SELECT u.id, u.firstname, u.lastname, u.picture, MAX(a.time) as time
|
$userfields = user_picture::fields('u');
|
||||||
|
return $DB->get_records_sql("SELECT $userfields, MAX(a.time) as time
|
||||||
FROM {survey_answers} a
|
FROM {survey_answers} a
|
||||||
JOIN {user} u ON a.userid = u.id
|
JOIN {user} u ON a.userid = u.id
|
||||||
$groupsjoin
|
$groupsjoin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue