mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-35648 (backport) adding missing distinct selector in sql on participation report
This commit is contained in:
parent
529d4cdbc6
commit
877ce4a64d
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ if (!empty($instanceid) && !empty($roleid)) {
|
|||
}
|
||||
$usernamefields = get_all_user_name_fields(true, 'u');
|
||||
$sql = "SELECT ra.userid, $usernamefields, u.idnumber, l.actioncount AS count
|
||||
FROM (SELECT * FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
FROM (SELECT DISTINCT userid FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
JOIN {user} u ON u.id = ra.userid
|
||||
$groupsql
|
||||
LEFT JOIN (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue