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
fix tests by converting set to array
Christophe Bliard82cc6d6d2e8f
diff --git a/app/models/activities/fetcher.rb b/app/models/activities/fetcher.rbindex 29df40c35b5..2552e0e0a79 100644--- a/app/models/activities/fetcher.rb+++ b/app/models/activities/fetcher.rb@@ -48,7 +48,7 @@ module Activities# Returns an array of available event typesdef event_types- @event_types ||= begin+ @event_types ||=if @projectOpenProject::Activity.available_event_types.select do |o|@project.self_and_descendants.detect do |_p|@@ -60,9 +60,8 @@ module Activitiesendendelse- OpenProject::Activity.available_event_types+ OpenProject::Activity.available_event_types.to_aend- endend# Returns an array of events for the given date range@@ -92,7 +91,7 @@ module Activities# Resets the scope to the default scopedef default_scope!- @scope = OpenProject::Activity.default_event_types+ @scope = OpenProject::Activity.default_event_types.to_aenddef events_from_providers(from, to, limit)