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

set the value without unit while saving

bsatarnejad7b28f7a9fb34
diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erb
index b5edacb8e33..4a5037e3812 100644
--- a/modules/costs/app/views/cost_types/_rate.html.erb
+++ b/modules/costs/app/views/cost_types/_rate.html.erb
@@ -63,7 +63,7 @@ See COPYRIGHT and LICENSE files for more details.
index: id_or_index,
inputmode: :decimal,
placeholder: t(:label_example_placeholder, decimal: unitless_currency_number(1000.50)),
- value: rate.rate ? rate.rate.round(2) : "",
+ value: rate.rate ? unitless_currency_number(rate.rate.round(2)) : "",
required: templated ? false : true %>
<span class="form-label">
<%= Setting.plugin_costs['costs_currency'] %>