diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 11:43:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-25 11:43:48 +0000 |
commit | 5ef0af67101e66e09119230d374eafee660a1632 (patch) | |
tree | c47f1eeba2c991f86bd4799ba3cf82b875b7594f /app/helpers/issues_helper.rb | |
parent | 116091a1d2ea1e4fd5c4838760d11beab2d5cea3 (diff) | |
download | redmine-5ef0af67101e66e09119230d374eafee660a1632.tar.gz redmine-5ef0af67101e66e09119230d374eafee660a1632.zip |
Fixed: Estimated time in issue's journal should be rounded to two decimals (#1793).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1754 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 9e419ab43..c6de00c10 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -75,6 +75,9 @@ module IssuesHelper when 'fixed_version_id' v = Version.find_by_id(detail.value) and value = v.name if detail.value v = Version.find_by_id(detail.old_value) and old_value = v.name if detail.old_value + when 'estimated_hours' + value = "%0.02f" % detail.value.to_f unless detail.value.blank? + old_value = "%0.02f" % detail.old_value.to_f unless detail.old_value.blank? end when 'cf' custom_field = CustomField.find_by_id(detail.prop_key) |