Project

General

Profile

Actions

Defect #33273

closed

Total estimated time column shows up as decimal value regardless of time setting

Added by Farook Al-Sammarraie over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues list
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

the reason for the issue is that total_estimated_hours is missing from queries_helper.rb

the issue can be fixed by changing lines 170 and 241:

diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 2e5b86b6e..a9d8cff6f 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -167,7 +167,7 @@ module QueriesHelper
   def total_tag(column, value)
     label = content_tag('span', "#{column.caption}:")
     value =
-      if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
+      if [:hours, :spent_hours, :total_spent_hours, :estimated_hours, :total_estimated_hours].include? column.name
         format_hours(value)
       else
         format_object(value)
@@ -238,7 +238,7 @@ module QueriesHelper
         'span',
         value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
         :class => value.css_classes_for(item))
-    when :hours, :estimated_hours
+    when :hours, :estimated_hours, :total_estimated_hours
       format_hours(value)
     when :spent_hours
       link_to_if(value > 0, format_hours(value), project_time_entries_path(item.project, :issue_id => "#{item.id}"))

(I already fixed it on my instance)

I'm not exactly sure if subversion supports something like pull requests in git, so i'm opening an issue instead


Files

33273-test.patch (1.05 KB) 33273-test.patch Go MAEDA, 2020-04-12 04:52
33273_4.0.8.patch (2.64 KB) 33273_4.0.8.patch Marius BĂLTEANU, 2020-04-16 18:04

Related issues

Related to Redmine - Feature #23996: Introduce a setting to change the display format of timespans to HH:MMClosedJean-Philippe Lang

Actions
Related to Redmine - Feature #20688: Add Total estimated hours column on issue list ClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #34775: Total time estimate isn't in the right formatClosed

Actions
Actions

Also available in: Atom PDF