summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-31 11:20:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-01-31 11:20:56 +0000
commitcc2401a2b92f3d71fd07f2519624495f8cc42ddd (patch)
tree345deeef3d116db2723bb92376778e8e1d673c60 /app/helpers
parent369425dde6f95ffc21ef470fbfaf9ca75d2c3bde (diff)
downloadredmine-cc2401a2b92f3d71fd07f2519624495f8cc42ddd.tar.gz
redmine-cc2401a2b92f3d71fd07f2519624495f8cc42ddd.zip
Adds units in history for estimated time (#12456).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@15143 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 3adc45454..4a368006e 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -382,8 +382,8 @@ module IssuesHelper
old_value = find_name_by_reflection(field, 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?
+ value = l_hours_short(detail.value.to_f) unless detail.value.blank?
+ old_value = l_hours_short(detail.old_value.to_f) unless detail.old_value.blank?
when 'parent_id'
label = l(:field_parent_issue)