プロジェクト

全般

プロフィール

Vote #80210

完了

Total estimated time column shown even when estimated time field is deactivated

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

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

0%

予定工数:
category_id:
58
version_id:
154
issue_org_id:
31779
author_id:
3866
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Even when the estimated time field is deactivated in the trackers available in the issue list the total estimated time column is available. This diff patches this issue, though maybe fixing it in @Tracker.disabled_core_fields@ would be better.


--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -288,6 +288,7 @@ class IssueQuery < Query
     end
 
     disabled_fields = Tracker.disabled_core_fields(trackers).map {|field| field.sub(/_id$/, '')}
+    disabled_fields << "total_estimated_hours" if disabled_fields.include?("estimated_hours")
     @available_columns.reject! {|column|
       disabled_fields.include?(column.name.to_s)
     }



journals

Since it's not a "core field" in the original sense, fixing it here seems good to me
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Felix Schäfer wrote:
> Even when the estimated time field is deactivated in the trackers available in the issue list the total estimated time column is available. This diff patches this issue, though maybe fixing it in @Tracker.disabled_core_fields@ would be better.
>
> [...]

I created a test. I attached a patch.

--------------------------------------------------------------------------------
Committed, thanks.
--------------------------------------------------------------------------------

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

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

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

いいね!0
いいね!0