From 54f4b1b0d8ec3c0e26a01bd7811ca838e2a6928e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 17 Oct 2023 09:27:31 +0000 Subject: Fix comment to correctly represent legacy filter parameters handling in UsersController#index API requests (#39181). Patch by Mischa The Evil. git-svn-id: https://svn.redmine.org/redmine/trunk@22354 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index f64c469da..067564bd3 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -45,7 +45,7 @@ class UsersController < ApplicationController use_session = !request.format.csv? retrieve_query(UserQuery, use_session) - # API backwards compatibility: handle legacy status and name filter parameters + # API backwards compatibility: handle legacy filter parameters unless request.format.html? if status_id = params[:status].presence @query.add_filter 'status', '=', [status_id] -- cgit v1.2.3