Permalink
Browse files

MDL-29812 partcipiant report - breaks when filtering by user

  • Loading branch information...
1 parent 5b653c7 commit 2d7ad201ac0738c58fdc589126372dad62eea7de @danpoltawski danpoltawski committed with nebgor Nov 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);

0 comments on commit 2d7ad20

Please sign in to comment.