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

trying to resolve issues only seen in CI

Jonas Jabari3e22803728ee
diff --git a/app/models/projects/acts_as_customizable_patches.rb b/app/models/projects/acts_as_customizable_patches.rb
index 5780f1a7853..41fbda4b9c8 100644
--- a/app/models/projects/acts_as_customizable_patches.rb
+++ b/app/models/projects/acts_as_customizable_patches.rb
@@ -147,7 +147,7 @@ module Projects::ActsAsCustomizablePatches
def sorted_available_custom_fields
available_custom_fields
- .sort_by { |pcf| [pcf.project_custom_field_section.position, pcf.position_in_custom_field_section] }
+ .sort_by { |pcf| [pcf.project_custom_field_section&.position, pcf.position_in_custom_field_section] }
end
def sorted_available_custom_fields_by_section(section)