diff --git a/app/models/concerns/reports/bookmarks.rb b/app/models/concerns/reports/bookmarks.rb index 3dac869021e..ab6ba95610d 100644 --- a/app/models/concerns/reports/bookmarks.rb +++ b/app/models/concerns/reports/bookmarks.rb @@ -8,7 +8,7 @@ module Reports::Bookmarks report.icon = "bookmark" category_filter = report.filters.dig(:category) - report.add_filter("category", default: category_filter) + report.add_filter("category", type: "category", default: category_filter) report.data = [] Bookmark diff --git a/app/models/report.rb b/app/models/report.rb index ca79d36bc93..d5e9240369e 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -129,14 +129,6 @@ class Report end def add_filter(name, options = {}) - if options[:type].blank? - options[:type] = name - Discourse.deprecate( - "#{name} filter should define a `:type` option. Temporarily setting type to #{name}.", - drop_from: "2.9.0", - ) - end - available_filters[name] = options end