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

[33677] Let boolean CF filters be kind of BooleanFilter

Oliver Güntherba2cd45fb8fd
diff --git a/app/models/queries/filters/shared/custom_fields/bool.rb b/app/models/queries/filters/shared/custom_fields/bool.rb
index a4b43a14ed3..7343a4eaa72 100644
--- a/app/models/queries/filters/shared/custom_fields/bool.rb
+++ b/app/models/queries/filters/shared/custom_fields/bool.rb
@@ -33,22 +33,7 @@ require_relative 'base'
module Queries::Filters::Shared
module CustomFields
class Bool < Base
- def allowed_values
- [
- [I18n.t(:general_text_yes), OpenProject::Database::DB_VALUE_TRUE],
- [I18n.t(:general_text_no), OpenProject::Database::DB_VALUE_FALSE]
- ]
- end
-
- def type
- :list
- end
-
- protected
-
- def type_strategy_class
- ::Queries::Filters::Strategies::BooleanList
- end
+ include Queries::Filters::Shared::BooleanFilter
end
end
end