Skip to content

Commit

Permalink
MDL-29812 partcipiant report - breaks when filtering by user
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski authored and Aparup Banerjee committed Nov 9, 2011
1 parent 8935486 commit 52a29f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/report/participation/index.php
Expand Up @@ -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);
Expand Down

0 comments on commit 52a29f8

Please sign in to comment.