# When groups filter has no matches, filter field disappears

**URL:** https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858
**Category:** Bug
**Created:** [May 18, 2018, 7:12pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858 "2018-05-18T19:12:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 18, 2018, 7:12pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858/1 "2018-05-18T19:12:27Z")

</div>

When filtering the members of a group by username or email using the field above the users list, the following happens:

 ![31%20PM](https://global.discourse-cdn.com/meta/original/3X/1/4/142318ae29317b79bc6eea4fac225d578589978c.png)

enter text which matches no users:

 ![37%20PM](https://global.discourse-cdn.com/meta/original/3X/a/6/a69fb9549f69c1aaaf9e58f47e761c1b756dac54.png)

The filter field disappears, and the message improperly suggests the group is empty, rather than there being no users matching the filter.

The filter can’t be corrected either, because the field is gone. The user is forced to browse back to the group view without a filter, or to edit the filter which appears in the URL.

\*\* [v2.0.0.beta10 +20](https://github.com/discourse/discourse/compare/53f8f6095d806cca49af9cac21142035fded7bc8...tests-passed)\*\*

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [May 18, 2018, 7:21pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858/2 "2018-05-18T19:21:03Z")

</div>

Ah good point… that’s annoying, I hid the filter thinking that it’s not necessary if a group has zero members… but I didn’t account for the fact that filtering in itself creates a “no member” state.

Just made an update that fixes that. Ideally we should know the difference, but just reverting back to what it was originally for now.

[https://github.com/discourse/discourse/commit/8b96d9a52d771397d328c3126ba7f717c0528290](https://github.com/discourse/discourse/commit/8b96d9a52d771397d328c3126ba7f717c0528290)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 18, 2018, 7:24pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858/3 "2018-05-18T19:24:25Z")

</div>

Eight minutes, is that a new record for a response and fix?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [May 18, 2018, 7:30pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858/4 "2018-05-18T19:30:31Z")

</div>

Just one of those things where the stars aligned and I happened to be looking at the right place at the right time and knew _exactly_ what caused the problem (me). 😉

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [May 19, 2018, 10:00pm UTC](https://meta.discourse.org/t/when-groups-filter-has-no-matches-filter-field-disappears/87858/5 "2018-05-19T22:00:01Z")

</div>

This topic was automatically closed after 26 hours. New replies are no longer allowed.
