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
refactor: inline call
Christophe Bliard2e2767e7f207
diff --git a/app/services/work_packages/set_attributes_service.rb b/app/services/work_packages/set_attributes_service.rbindex e29ff6a5ae4..862734a01bf 100644--- a/app/services/work_packages/set_attributes_service.rb+++ b/app/services/work_packages/set_attributes_service.rb@@ -51,14 +51,13 @@ class WorkPackages::SetAttributesService < ::BaseServices::SetAttributesenddef set_calculated_attributes(attributes)- derivable = derivable_attributeif work_package.new_record?set_default_attributes(attributes)elseupdate_datesendupdate_duration- update_derivable(derivable)+ update_derivableupdate_project_dependent_attributesreassign_invalid_status_if_type_changedset_templated_description@@ -130,8 +129,8 @@ class WorkPackages::SetAttributesService < ::BaseServices::SetAttributesend# rubocop:disable Metrics/AbcSize- def update_derivable(derivable)- case derivable+ def update_derivable+ case derivable_attributewhen :durationwork_package.duration =if work_package.milestone?