Vote #80210
完了Total estimated time column shown even when estimated time field is deactivated
0%
説明
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.
--------------------------------------------------------------------------------