diff --git a/app/services/api/v3/parse_query_params_service.rb b/app/services/api/v3/parse_query_params_service.rb index f5c2a491e3..c66b6ca033 100644 --- a/app/services/api/v3/parse_query_params_service.rb +++ b/app/services/api/v3/parse_query_params_service.rb @@ -113,9 +113,9 @@ module API # { /* more filters if needed */} # ] def filters_from_params(params) - return unless params[:filters] + filters = params[:filters] || params[:filter] + return unless filters - filters = params[:filters] filters = JSON.parse filters if filters.is_a? String filters.map do |filter|