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
[#66093] Use elegant pattern matching
Tobias Dillmanne7e586d26385
diff --git a/app/models/acts_as_customizable/calculated_value.rb b/app/models/acts_as_customizable/calculated_value.rbindex 69a82f83cba..5b1f3b54216 100644--- a/app/models/acts_as_customizable/calculated_value.rb+++ b/app/models/acts_as_customizable/calculated_value.rb@@ -47,10 +47,10 @@ module ActsAsCustomizable::CalculatedValueenabled_ids = enabled_custom_field_idsgiven = calculated_value_fields_given(custom_fields:, enabled_ids:)- result, errors = calculate_custom_fields_result(+ calculate_custom_fields_result(given:,to_compute: calculated_value_fields_to_compute(custom_fields:, enabled_ids:)- ).values_at(:result, :errors)+ ) => { result:, errors: }self.custom_field_values = custom_fields.to_h { [it.id, result[it.column_name]] }