missed one line.
Fix for MDL-10085 and MDL-8118 Problem with number of Responses in choice wrong, and displayed users incorrect on results.
This commit is contained in:
+1
-1
@@ -243,7 +243,7 @@ function choice_user_submit_response($formanswer, $choice, $userid, $courseid, $
|
||||
if ($countanswers) {
|
||||
$countans = 0;
|
||||
foreach ($countanswers as $ca) { //only return enrolled users.
|
||||
if (has_capability('mod/choice:choose', $context)) {
|
||||
if (has_capability('mod/choice:choose', $context, $ca->userid, false)) {
|
||||
$countans = $countans+1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user