プロジェクト

全般

プロフィール

Vote #80801

完了

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

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues list_58
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
58
version_id:
162
issue_org_id:
33273
author_id:
453817
assigned_to_id:
332
comments:
12
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
127
ステータス-->[Closed]

説明

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


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Here is a test for the patch.

Setting the target version to 4.1.2.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the patch. Thank you for your report and fix.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Committed the patch. Thank you for your report and fix.

Go Maeda, is there any reason for why we don't merge this to 4.0.8 as well?
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Go Maeda, is there any reason for why we don't merge this to 4.0.8 as well?

This is because I simply didn't want to do manual work. r19702 cannot be auto-merged to 4.0-stable. But I will do it if you or someone think that the fix should be a part of 4.0.8.
--------------------------------------------------------------------------------
Attached the patch to back port to 4.0.8 as well.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> Attached the patch to back port to 4.0.8 as well.

Thank you for the patch but the test fails.

<pre>
Failure:
IssuesControllerTest#test_index_should_respect_timespan_format [test/functional/issues_controller_test.rb:1607]:
<200:00> expected but was
<>..
Expected 0 to be >= 1.

bin/rails test test/functional/issues_controller_test.rb:1598
</pre>
--------------------------------------------------------------------------------
Sorry for not running the tests.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,23996,Introduce a setting to change the display format of timespans to HH:MM
relates,Closed,20688,Add Total estimated hours column on issue list
duplicates,Closed,34775,Total time estimate isn't in the right format

Admin Redmine さんが3年以上前に更新

  • カテゴリIssues list_58 にセット
  • 対象バージョン4.1.2_162 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0