mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-29812 partcipiant report - breaks when filtering by user
This commit is contained in:
parent
5b653c75dd
commit
2d7ad201ac
1 changed files with 1 additions and 0 deletions
|
@ -223,6 +223,7 @@
|
||||||
|
|
||||||
$countsql = "SELECT COUNT(DISTINCT(ra.userid))
|
$countsql = "SELECT COUNT(DISTINCT(ra.userid))
|
||||||
FROM {role_assignments} ra
|
FROM {role_assignments} ra
|
||||||
|
JOIN {user} u ON u.id = ra.userid
|
||||||
WHERE ra.contextid $relatedcontexts AND ra.roleid = :roleid";
|
WHERE ra.contextid $relatedcontexts AND ra.roleid = :roleid";
|
||||||
|
|
||||||
$totalcount = $DB->count_records_sql($countsql, $params);
|
$totalcount = $DB->count_records_sql($countsql, $params);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue