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 strategy not applicable for the limited values of types

ulferts1b87e3aea603
diff --git a/app/models/queries/projects/filters/type_filter.rb b/app/models/queries/projects/filters/type_filter.rb
index e9ec1858cc7..b5bbb363b02 100644
--- a/app/models/queries/projects/filters/type_filter.rb
+++ b/app/models/queries/projects/filters/type_filter.rb
@@ -48,14 +48,4 @@ class Queries::Projects::Filters::TypeFilter < Queries::Projects::Filters::Base
def self.key
:type_id
end
-
- private
-
- def type_strategy
- # Instead of getting the IDs of all the projects a user is allowed
- # to see we only check that the value is an integer. Non valid ids
- # will then simply create an empty result but will not cause any
- # harm.
- @type_strategy ||= ::Queries::Filters::Strategies::IntegerList.new(self)
- end
end