mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Restores API compatibility to legacy status when status param is sent blank (@status=@) and it should return all users (#40099).
git-svn-id: https://svn.redmine.org/redmine/trunk@22625 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
60adf42c08
commit
f803778cde
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user