mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
DbUserGroupBackend: Use LEFT JOIN to join the group_membership table
Fixes the issue that groups are not found if they do not have any members even though they meet the where clause
This commit is contained in:
parent
7ef76932d4
commit
1b7dc1098c
@ -250,7 +250,7 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
|
|||||||
*/
|
*/
|
||||||
protected function joinGroupMembership(RepositoryQuery $query)
|
protected function joinGroupMembership(RepositoryQuery $query)
|
||||||
{
|
{
|
||||||
$query->getQuery()->join(
|
$query->getQuery()->joinLeft(
|
||||||
$this->requireTable('group_membership'),
|
$this->requireTable('group_membership'),
|
||||||
'g.id = gm.group_id',
|
'g.id = gm.group_id',
|
||||||
array()
|
array()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user