mirror of
https://github.com/redmine/redmine.git
synced 2026-01-24 08:19:53 +01:00
Merged r22633 from trunk to 5.1-stable (#40099).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22634 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -48,6 +48,7 @@ class UsersController < ApplicationController
|
||||
# API backwards compatibility: handle legacy filter parameters
|
||||
unless request.format.html?
|
||||
if params.include?(:status) && params[:status].blank?
|
||||
ActiveSupport::Deprecation.warn "Getting all users from API using an empty status param (status=) is deprecated and it will be removed in Redmine 6.0. Please use \"status=*\"."
|
||||
@query.add_filter 'status', '*'
|
||||
end
|
||||
if name = params[:name].presence
|
||||
|
||||
Reference in New Issue
Block a user