summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-04 11:03:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-04 11:03:44 +0000
commit333a6cc37005668f614252d3c58fedad4ef50e1d (patch)
treedccf9842d7465644a9e2952fb39f9c5b6611ccee /app/helpers/issues_helper.rb
parent2789cf250617c5e55df9510c6eae21e073936d2c (diff)
downloadredmine-333a6cc37005668f614252d3c58fedad4ef50e1d.tar.gz
redmine-333a6cc37005668f614252d3c58fedad4ef50e1d.zip
Fixed rounding issue on spent hours column in CSV export (#10150).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8764 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index b061840fb..29444e703 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -329,7 +329,7 @@ module IssuesHelper
elsif value.is_a?(Time)
format_time(value)
elsif value.is_a?(Float)
- value.to_s.gsub('.', decimal_separator)
+ ("%.2f" % value).gsub('.', decimal_separator)
else
value
end