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

calculated value input should be disabled instead of readonly

Ivan Kuchin0b5af3beb7ed
diff --git a/app/forms/custom_fields/inputs/calculated_value.rb b/app/forms/custom_fields/inputs/calculated_value.rb
index a053e7bbcda..0f35da11f3f 100644
--- a/app/forms/custom_fields/inputs/calculated_value.rb
+++ b/app/forms/custom_fields/inputs/calculated_value.rb
@@ -34,6 +34,6 @@ class CustomFields::Inputs::CalculatedValue < CustomFields::Inputs::Base::Input
end
def input_attributes
- super.merge({ readonly: true })
+ super.merge({ disabled: true })
end
end