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

fix[Op#54749]: use `project.active_subprojects` so to cover all descendants

Kabiru Mwenja9c9653af6bc8
diff --git a/app/services/project_custom_field_project_mappings/bulk_create_service.rb b/app/services/project_custom_field_project_mappings/bulk_create_service.rb
index 410082f37aa..f9bb4b7f530 100644
--- a/app/services/project_custom_field_project_mappings/bulk_create_service.rb
+++ b/app/services/project_custom_field_project_mappings/bulk_create_service.rb
@@ -87,7 +87,7 @@ module ProjectCustomFieldProjectMappings
def projects
[@project].tap do |projects_array|
- projects_array.concat(@project.children.to_a) if @include_sub_projects
+ projects_array.concat(@project.active_subprojects.to_a) if @include_sub_projects
end
end