Permalink
Browse files

MDL-21567 Assign roles screen at module level can show users twice

  • Loading branch information...
1 parent 45f656b commit bfaf0e574727f5d033be9fa633bbb34720de620f @sammarshallou sammarshallou committed Feb 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/roles/assign.php
@@ -325,7 +325,7 @@
if ($validroleids) {
$roleids = '('.implode(',', $validroleids).')';
- $select = " SELECT u.id, u.firstname, u.lastname, u.email";
+ $select = " SELECT DISTINCT u.id, u.firstname, u.lastname, u.email";
$countselect = "SELECT COUNT(u.id)";
$from = " FROM {$CFG->prefix}user u
INNER JOIN {$CFG->prefix}role_assignments ra ON ra.userid = u.id

0 comments on commit bfaf0e5

Please sign in to comment.