MDL-29812 partcipiant report - breaks when filtering by user
This commit is contained in:
committed by
Aparup Banerjee
parent
8935486dc4
commit
52a29f890e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user