Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove hack to have unique filter count

Klaus Zanders5a428192b085
diff --git a/app/components/filters_component.rb b/app/components/filters_component.rb
index 12ec01fbb0d..c35e9a3c5a2 100644
--- a/app/components/filters_component.rb
+++ b/app/components/filters_component.rb
@@ -58,11 +58,7 @@ class FiltersComponent < ApplicationComponent
end
def filters_count
- @filters_count ||= query
- .filters
- .map(&:class)
- .uniq
- .count
+ @filters_count ||= query.filters.count
end
protected