FIX: Use include-subcategories filter in report export (#10007)

Some filters were renamed and the conversion of the filter names and arguments
was removed.
This commit is contained in:
Dan Ungureanu
2020-06-10 18:57:39 +03:00
committed by GitHub
parent 274db95fb2
commit 3a7ca97c36
8 changed files with 76 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ class ExportCsvController < ApplicationController
def export_params
@_export_params ||= begin
params.require(:entity)
params.permit(:entity, args: [:name, :start_date, :end_date, :category_id, :group_id, :trust_level]).to_h
params.permit(:entity, args: Report::FILTERS).to_h
end
end
end