From 2d7ad201ac0738c58fdc589126372dad62eea7de Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 1 Nov 2011 17:02:23 +0000 Subject: [PATCH] MDL-29812 partcipiant report - breaks when filtering by user --- course/report/participation/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/report/participation/index.php b/course/report/participation/index.php index 659b198559f..d66fd7944cf 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -223,6 +223,7 @@ $countsql = "SELECT COUNT(DISTINCT(ra.userid)) FROM {role_assignments} ra + JOIN {user} u ON u.id = ra.userid WHERE ra.contextid $relatedcontexts AND ra.roleid = :roleid"; $totalcount = $DB->count_records_sql($countsql, $params);