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
block/remove all available calculated value custom fields from params
Ivan Kuchin139883c7108e
diff --git a/app/services/projects/concerns/set_calculated_custom_field_values.rb b/app/services/projects/concerns/set_calculated_custom_field_values.rbindex 906dd8ce332..91bc793902b 100644--- a/app/services/projects/concerns/set_calculated_custom_field_values.rb+++ b/app/services/projects/concerns/set_calculated_custom_field_values.rb@@ -42,7 +42,7 @@ module Projects::Concernscustom_field_value_params = params[:custom_field_values]return params unless custom_field_value_params- calculated_field_ids = model.available_custom_fields.select(&:field_format_calculated_value?).map(&:id)+ calculated_field_ids = model.all_available_custom_fields.select(&:field_format_calculated_value?).map(&:id)custom_field_value_params = custom_field_value_params.reject { |id, _| id.to_s.to_i.in?(calculated_field_ids) }params.merge(custom_field_values: custom_field_value_params)