From 770778a502327a8876d20e57407dbbe09eae09a2 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Mon, 29 Oct 2007 00:21:53 +0000 Subject: [PATCH] missed one line. Fix for MDL-10085 and MDL-8118 Problem with number of Responses in choice wrong, and displayed users incorrect on results. --- mod/choice/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index f6b6e25897..80d88665bb 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -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; } } -- 2.39.5