Skip to content

Commit

Permalink
#2011 [Users] fix: remove duplicates from user list for users within …
Browse files Browse the repository at this point in the history
…multiple usergroups
  • Loading branch information
Théo David committed Sep 7, 2022
1 parent 84fcf0c commit b6770a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions view/digiriskusers.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
if ($catid == -2) $sql .= " AND cu.fk_categorie IS NULL";
if ($search_categ > 0) $sql .= " AND cu.fk_categorie = " . $db->escape($search_categ);
if ($search_categ == -2) $sql .= " AND cu.fk_categorie IS NULL";

$sql .= ' GROUP BY u.rowid';

// Add where from extra fields
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_sql.tpl.php';
// Add where from hooks
Expand Down

0 comments on commit b6770a6

Please sign in to comment.