Skip to content

Commit 40aca37

Browse files
frederikmillingpytlickmchurchward
authored andcommitted
GHPR436 Fixed non respondents tab getting to many users
1 parent b267ef3 commit 40aca37

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

locallib.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -575,15 +575,7 @@ function questionnaire_get_incomplete_users($cm, $sid,
575575
// First get all users who can complete this questionnaire.
576576
$cap = 'mod/questionnaire:submit';
577577
$fields = 'u.id, u.username';
578-
if (!$allusers = get_users_by_capability($context,
579-
$cap,
580-
$fields,
581-
$sort,
582-
'',
583-
'',
584-
$group,
585-
'',
586-
true)) {
578+
if (!$allusers = get_enrolled_users($context, $cap, $group, $fields, $sort)) {
587579
return false;
588580
}
589581
$allusers = array_keys($allusers);

0 commit comments

Comments
 (0)