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
Remove unnecessary default argument value
Tobias Dillmann007750ade94f
diff --git a/app/models/acts_as_customizable/calculated_value.rb b/app/models/acts_as_customizable/calculated_value.rbindex d9fc7af1277..30cf543db53 100644--- a/app/models/acts_as_customizable/calculated_value.rb+++ b/app/models/acts_as_customizable/calculated_value.rb@@ -113,7 +113,7 @@ module ActsAsCustomizable::CalculatedValue)end- def remove_calculated_value_errors!(custom_field_ids = [])+ def remove_calculated_value_errors!(custom_field_ids)return if custom_field_ids.empty?CalculatedValueError.where(customized: self, custom_field_id: custom_field_ids).delete_all