summaryrefslogtreecommitdiffstats
path: root/app/models/issue_query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 08:30:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 08:30:15 +0000
commitc5b5f0d6a9ab7e710da53a5043cc262e92928c51 (patch)
tree334938afbc038d2dc915526d1319e73088aec493 /app/models/issue_query.rb
parent57a66e950c94037e2b3ac4c8102af801957ff6cf (diff)
downloadredmine-c5b5f0d6a9ab7e710da53a5043cc262e92928c51.tar.gz
redmine-c5b5f0d6a9ab7e710da53a5043cc262e92928c51.zip
Fixed that total estimated time column is shown even when estimated time field is deactivated (#31779).
Patch by Felix Schäfer and Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18743 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r--app/models/issue_query.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index 348845a43..b134cec21 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -247,6 +247,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)
}