Skip to content

Group filter does not work well #96

@ayyilmaz

Description

@ayyilmaz

I think group filter does not work well. Because when I select more than groups it does not show any user.

I selected admins it showed 1 user and then I also selected moderators but it show 0 users. My expectation is that when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.

Bug Report

Current Behavior
A clear and concise description of the behavior.

Steps to Reproduce

  1. Go to 'user directory page'
  2. Click on 'Filter Group'
  3. Select one group then another groups
  4. when I select more than groups it does not show any user if user is not member of both groups.

Expected Behavior
when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • Flarum version: 1.4.01
  • Extension version: x.y.z
  • Website URL: http://example.com
  • Webserver: nginx]
  • Hosting environment: vps
  • PHP version: 8.01
  • Browser: chrome

Possible solution(s)
We should filter with OR operator instead of AND

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions