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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use flat_map in the reasons_filter
Dombi Attila5dc7d1312bec
diff --git a/app/models/queries/notifications/filters/reason_filter.rb b/app/models/queries/notifications/filters/reason_filter.rbindex 55a5cd451c5..e6c4f0d4d3c 100644--- a/app/models/queries/notifications/filters/reason_filter.rb+++ b/app/models/queries/notifications/filters/reason_filter.rb@@ -38,7 +38,7 @@ class Queries::Notifications::Filters::ReasonFilter < Queries::Notifications::Fienddef where- id_values = values.map { |value| REASONS[value] }- operator_strategy.sql_for_field(id_values.flatten, self.class.model.table_name, :reason)+ id_values = values.flat_map { |value| REASONS[value] }+ operator_strategy.sql_for_field(id_values, self.class.model.table_name, :reason)endend