Commit dca47890792bc43dde6e0877ed23b375d16e009f
1 parent
5a6e6c8f
now includes users that aren't in any groups in default listing (s.ciancio@pisa.iol.it)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2810 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/listUsersUI.inc
| ... | ... | @@ -49,11 +49,12 @@ function getGroupDisplay($iGroupID) { |
| 49 | 49 | |
| 50 | 50 | function getUsers($fGroupID) { |
| 51 | 51 | global $default; |
| 52 | + // changed from inner to outer joins to include users that aren't in any groups (Stefano Ciancio [s.ciancio@pisa.iol.it]) | |
| 52 | 53 | $sQuery = "SELECT DISTINCT U.id as userID, U.name as name, U.username, " . |
| 53 | 54 | "'Edit', 'Delete', 'Edit Groups' " . |
| 54 | 55 | "FROM $default->users_table U " . |
| 55 | - "INNER JOIN $default->users_groups_table UGL ON U.id = UGL.user_id " . | |
| 56 | - "INNER JOIN $default->groups_table GL ON UGL.group_id = GL.id "; | |
| 56 | + "LEFT OUTER JOIN $default->users_groups_table UGL ON U.id = UGL.user_id " . | |
| 57 | + "LEFT OUTER JOIN $default->groups_table GL ON UGL.group_id = GL.id "; | |
| 57 | 58 | // filter by group |
| 58 | 59 | if ($fGroupID) { |
| 59 | 60 | $sWhereClause = "WHERE UGL.group_id = $fGroupID "; | ... | ... |