Skip to content

Commit

Permalink
Fix people filter by group (#7004)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed May 16, 2024
1 parent a405027 commit c02adbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
-----------------------------
Expand Down
1 change: 1 addition & 0 deletions protected/humhub/modules/user/widgets/PeopleFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ protected function getGroupOptions(): array
->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])
Expand Down

0 comments on commit c02adbb

Please sign in to comment.