]> source.dussan.org Git - redmine.git/commitdiff
Restores API compatibility to legacy status when status param is sent blank (@status...
authorMarius Balteanu <marius.balteanu@zitec.com>
Thu, 25 Jan 2024 05:10:51 +0000 (05:10 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Thu, 25 Jan 2024 05:10:51 +0000 (05:10 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22625 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/users_controller.rb

index 74e111de65fbc32168cae21964f12b9afeceecf8..18c012d60c66424b6162f96030ab1edca0575639 100644 (file)
@@ -47,8 +47,8 @@ class UsersController < ApplicationController
 
     # API backwards compatibility: handle legacy filter parameters
     unless request.format.html?
-      if status_id = params[:status].presence
-        @query.add_filter 'status', '=', [status_id]
+      if params.include?(:status) && params[:status].blank?
+        @query.add_filter 'status', '*'
       end
       if name = params[:name].presence
         @query.add_filter 'name', '~', [name]