diff --git a/mod/choice/lib.php b/mod/choice/lib.php index 09d7ad5a351..ac2d3e938d5 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -292,7 +292,7 @@ function choice_show_reportlink($choice, $courseid, $cm, $groupmode) { } $context = get_context_instance(CONTEXT_MODULE, $cm->id); - $availableusers = get_users_by_capability($context, 'mod/choice:choose', 'u.id', '','','',$currentgroup, '', false, true); + $availableusers = get_users_by_capability($context, 'mod/choice:choose', 'u.id', '','','',$currentgroup, '', true, true); $responsecount = 0; @@ -326,7 +326,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { $currentgroup = 0; } - $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', false, true); + $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', true, true); if (!empty($CFG->enablegroupings) && !empty($cm->groupingid) && !empty($users)) { $groupingusers = groups_get_grouping_members($cm->groupingid, 'u.id', 'u.id'); @@ -422,7 +422,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { // MDL-7861 echo "