]> source.dussan.org Git - redmine.git/commitdiff
Enable "any" and "none" operators for status filter in User listing (#40099).
authorMarius Balteanu <marius.balteanu@zitec.com>
Thu, 25 Jan 2024 05:08:12 +0000 (05:08 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Thu, 25 Jan 2024 05:08:12 +0000 (05:08 +0000)
Patch by Jens Krämer (@jkraemer).

git-svn-id: https://svn.redmine.org/redmine/trunk@22624 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/user_query.rb

index 3e1cb2a74031dd2ce97eb4f21c75862baa905481..12729fc0553ef7885c75eb7c80c4ee5c187c569c 100644 (file)
@@ -40,7 +40,7 @@ class UserQuery < Query
 
   def initialize_available_filters
     add_available_filter "status",
-      type: :list, values: ->{ user_statuses_values }
+      type: :list_optional, values: ->{ user_statuses_values }
     add_available_filter "auth_source_id",
       type: :list_optional, values: ->{ auth_sources_values }
     add_available_filter "is_member_of_group",