]> source.dussan.org Git - redmine.git/commitdiff
Adds units in history for estimated time (#12456).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 31 Jan 2016 11:20:56 +0000 (11:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 31 Jan 2016 11:20:56 +0000 (11:20 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@15143 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 3adc4545493803f8cf36d8a3561ebd970a1b784e..4a368006e7641c0aa65e6d7ebae94ca84ff44fc9 100644 (file)
@@ -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)