fix symbol:gsub issue when creating cost entries in the frontend

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1663 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 14 years ago
parent 60f5e4038b
commit 65d6ed12fa
  1. 4
      app/controllers/costlog_controller.rb

@ -127,8 +127,8 @@ class CostlogController < ApplicationController
@cost_entry = CostEntry.new(:project => @project, :issue => @issue, :user => new_user, :spent_on => Date.today)
end
if params[:cost_entry].is_a?(Hash)
params[:cost_entry][:overridden_costs] = CostRate.clean_currency(params[:cost_entry][:overridden_costs])
if params[:cost_entry].is_a?(Hash)
params[:cost_entry]["overridden_costs"] = CostRate.clean_currency(params[:cost_entry]["overridden_costs"])
end
@cost_entry.attributes = params[:cost_entry]
@cost_entry.cost_type ||= CostType.default

Loading…
Cancel
Save