mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-61289-master' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
98ee3df14e
1 changed files with 2 additions and 1 deletions
|
@ -791,8 +791,9 @@ function choice_get_response_data($choice, $cm, $groupmode, $onlyactive) {
|
||||||
|
|
||||||
/// First get all the users who have access here
|
/// First get all the users who have access here
|
||||||
/// To start with we assume they are all "unanswered" then move them later
|
/// To start with we assume they are all "unanswered" then move them later
|
||||||
|
$extrafields = get_extra_user_fields($context);
|
||||||
$allresponses[0] = get_enrolled_users($context, 'mod/choice:choose', $currentgroup,
|
$allresponses[0] = get_enrolled_users($context, 'mod/choice:choose', $currentgroup,
|
||||||
user_picture::fields('u', array('idnumber')), null, 0, 0, $onlyactive);
|
user_picture::fields('u', $extrafields), null, 0, 0, $onlyactive);
|
||||||
|
|
||||||
/// Get all the recorded responses for this choice
|
/// Get all the recorded responses for this choice
|
||||||
$rawresponses = $DB->get_records('choice_answers', array('choiceid' => $choice->id));
|
$rawresponses = $DB->get_records('choice_answers', array('choiceid' => $choice->id));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue