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

[#64347] all.collect.each -> find_each

Tobias Dillmann4f7f370204ea
diff --git a/app/components/admin/custom_fields/calculated_values/details_form.rb b/app/components/admin/custom_fields/calculated_values/details_form.rb
index 7d48d0e05e4..5b3da9c9c5f 100644
--- a/app/components/admin/custom_fields/calculated_values/details_form.rb
+++ b/app/components/admin/custom_fields/calculated_values/details_form.rb
@@ -47,7 +47,7 @@ module Admin::CustomFields::CalculatedValues
label: I18n.t("activerecord.attributes.project_custom_field.custom_field_section"),
required: true
) do |li|
- ProjectCustomFieldSection.all.collect.each do |cs|
+ ProjectCustomFieldSection.find_each do |cs|
li.option(value: cs.id, label: cs.name)
end
end