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

ensure that scope is an array, to not error if it is not

Ivan Kuchin4c728c5f660a
diff --git a/app/models/activities/fetcher.rb b/app/models/activities/fetcher.rb
index 4d19848ff7a..a0451684730 100644
--- a/app/models/activities/fetcher.rb
+++ b/app/models/activities/fetcher.rb
@@ -81,7 +81,7 @@ module Activities
when :default
default_scope!
else
- @scope = scope & event_types
+ @scope = Array(scope) & event_types
end
end