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

Don't filter for active in ruby

Oliver Günther5ce93e83859c
diff --git a/app/models/project.rb b/app/models/project.rb
index 3831285f850..8cf4ad4c7e3 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -344,7 +344,7 @@ class Project < ApplicationRecord
# Returns an array of active subprojects.
def active_subprojects
- project.descendants.select(&:active)
+ project.descendants.where(active: true)
end
class << self