mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Hide data of disabled users on picker filters on "People" page (#5800)
* Hide data of disabled users on picker filters on "People" page * Factorize query for people filter picker * Update CHANGELOG.md (#5800)
This commit is contained in:
parent
e924bb0302
commit
71528b8b48
@ -6,6 +6,7 @@ HumHub Changelog
|
|||||||
- Fix #5776: Hide beta modules on disabled filter
|
- Fix #5776: Hide beta modules on disabled filter
|
||||||
- Fix #5799: Incorrect selection when multiple custom filters are in place
|
- Fix #5799: Incorrect selection when multiple custom filters are in place
|
||||||
- Fix #5780: Don't hide icon "remove item" on picker
|
- Fix #5780: Don't hide icon "remove item" on picker
|
||||||
|
- Fix #5800: Hide data of disabled users on picker filters on "People" page
|
||||||
|
|
||||||
1.11.3 (June 27, 2022)
|
1.11.3 (June 27, 2022)
|
||||||
----------------------
|
----------------------
|
||||||
|
@ -124,12 +124,12 @@ class PeopleFilterPicker extends BasePicker
|
|||||||
*/
|
*/
|
||||||
public function getSuggestions($keyword = '')
|
public function getSuggestions($keyword = '')
|
||||||
{
|
{
|
||||||
return Profile::find()->select([
|
return User::find()
|
||||||
'id' => $this->itemKey,
|
->select(['id' => $this->itemKey, 'text' => $this->itemKey])
|
||||||
'text' => $this->itemKey,
|
->visible()
|
||||||
])
|
->joinWith('profile')
|
||||||
|
->andWhere(['LIKE', $this->itemKey, $keyword])
|
||||||
->groupBy($this->itemKey)
|
->groupBy($this->itemKey)
|
||||||
->where(['LIKE', $this->itemKey, $keyword])
|
|
||||||
->limit(100)
|
->limit(100)
|
||||||
->asArray()
|
->asArray()
|
||||||
->all();
|
->all();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user