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

move falsey check of fetcher scope

Ivan Kuchin2574ae1903ee
diff --git a/app/models/activities/fetcher.rb b/app/models/activities/fetcher.rb
index 20a5a6cd198..b77aef049fd 100644
--- a/app/models/activities/fetcher.rb
+++ b/app/models/activities/fetcher.rb
@@ -42,7 +42,7 @@ module Activities
@meeting = options[:meeting]
@options = options
- @scope = parse_scope(options[:scope])
+ @scope = parse_scope(options[:scope] || :all)
end
# Returns an array of available event types
@@ -75,7 +75,7 @@ module Activities
# Argument can be :all, :default or an array of event types
def parse_scope(scope)
case scope
- when :all, false, nil
+ when :all
event_types
when :default
OpenProject::Activity.default_event_types.to_a