Merge pull request #8543 from opf/feature/allow_filter_for_filters_params

allow `filter` for firlters params
pull/8547/head
Oliver Günther 4 years ago committed by GitHub
commit f9ace252a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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|

Loading…
Cancel
Save