Skip to content

Commit

Permalink
MDL-61289 mod_choice: Add extra user fields to response data
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Feb 19, 2018
1 parent d1b4ca9 commit 0e8d659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/choice/lib.php
Expand Up @@ -791,8 +791,9 @@ function choice_get_response_data($choice, $cm, $groupmode, $onlyactive) {

/// First get all the users who have access here
/// 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,
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
$rawresponses = $DB->get_records('choice_answers', array('choiceid' => $choice->id));
Expand Down

0 comments on commit 0e8d659

Please sign in to comment.