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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
linting
ulferts51989a4cc940
diff --git a/lib/api/v3/work_packages/eager_loading/custom_value.rb b/lib/api/v3/work_packages/eager_loading/custom_value.rbindex 40e2a888957..4aa041e85b9 100644--- a/lib/api/v3/work_packages/eager_loading/custom_value.rb+++ b/lib/api/v3/work_packages/eager_loading/custom_value.rb@@ -110,7 +110,7 @@ module APIdef eager_load_values(field_format, scope)cvs = custom_values_of(field_format)- ids_of_values = cvs.map(&:value).select { |v| v =~ /\A\d+\z/ }+ ids_of_values = cvs.map(&:value).grep(/\A\d+\z/)return {} if ids_of_values.empty?@@ -136,7 +136,7 @@ module APIdef custom_field(id)@loaded_custom_fields_by_id ||= WorkPackageCustomField- .where(id: usages.map { |u| u['custom_field_id'] }.uniq)+ .where(id: usages.pluck('custom_field_id').uniq).index_by(&:id)@loaded_custom_fields_by_id[id]