diff --git a/modules/costs/app/controllers/cost_types_controller.rb b/modules/costs/app/controllers/cost_types_controller.rb index bacf91306b..bbd09e3f35 100644 --- a/modules/costs/app/controllers/cost_types_controller.rb +++ b/modules/costs/app/controllers/cost_types_controller.rb @@ -129,7 +129,7 @@ class CostTypesController < ApplicationController cr.valid_from = today end - rate.rate = parse_number_string_to_number(params[:rate]) + rate.rate = CostRate.parse_number_string_to_number(params[:rate]) if rate.save flash[:notice] = t(:notice_successful_update) redirect_to action: 'index'