Skip to content

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

Merge branch 'release/14.0' into feature-add-turbo-frame-morphing

Aaron Contreras309a5bad27de
diff --cc app/services/work_packages/set_attributes_service.rb
index 6f1a4460a59,4d4e14a2d89..605ac8cdadc
--- a/app/services/work_packages/set_attributes_service.rb
+++ b/app/services/work_packages/set_attributes_service.rb
@@@ -331,8 -331,12 +332,13 @@@ class WorkPackages::SetAttributesServic
end
end
+ def round_progress_values
+ work_package.estimated_hours = work_package.estimated_hours&.round(2)
+ work_package.remaining_hours = work_package.remaining_hours&.round(2)
+ end
+
def update_remaining_hours_from_percent_complete
+ return if work_package.remaining_hours_came_from_user?
return if work_package.estimated_hours&.negative?
work_package.remaining_hours = remaining_hours_from_done_ratio_and_estimated_hours