Fix people filter by group (#7004)

This commit is contained in:
Yuriy Bakhtin 2024-05-16 15:25:37 +02:00 committed by GitHub
parent a405027bd5
commit c02adbb433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ HumHub Changelog
- Enh #6986: When moving a content from a container to another, prevent updating the content dates to keep the stream sort as it was
- Enh #6992: Improve handle database connection errors
- Fix #6552: When a JS file has `module.initOnAjaxLoad = true;`, if the `initOnAjaxUrls` contains multiple params in the URL, the `init` function is not triggered
- Fix #7004: Fix people filter by group
1.16.0-beta.2 (April 9, 2024)
-----------------------------

View File

@ -173,6 +173,7 @@ class PeopleFilters extends DirectoryFilters
->leftJoin('group_user AS fgu', 'fgu.user_id = user.id')
->leftJoin('group', 'fgu.group_id = group.id')
->select(['group.id', 'group.name'])
->andWhere(['show_at_directory' => 1])
->andWhere(['IS NOT', 'group.id', new Expression('NULL')])
->offset(null)
->orderBy(['sort_order' => SORT_ASC, 'name' => SORT_ASC])