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

Mark done_ratio as read-only on the work package contract

Aaron Contrerasf6ca54cdc0ba
diff --git a/app/contracts/work_packages/base_contract.rb b/app/contracts/work_packages/base_contract.rb
index 663081668e7..ee86d5abfa3 100644
--- a/app/contracts/work_packages/base_contract.rb
+++ b/app/contracts/work_packages/base_contract.rb
@@ -53,9 +53,7 @@ module WorkPackages
attribute :project_id
attribute :done_ratio,
- writable: ->(*) do
- Setting.work_package_done_ratio == 'field'
- end
+ writable: false
attribute :derived_done_ratio,
writable: false