summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-18 08:45:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-18 08:45:09 +0000
commit04e67ed04177f4f789784d7851741e816c42746b (patch)
tree6e3e911ba0bb610ba21bede85bde0787c711009e
parent88baaa5d3b6e8954df4b7ff51137f619ba5390ef (diff)
downloadredmine-04e67ed04177f4f789784d7851741e816c42746b.tar.gz
redmine-04e67ed04177f4f789784d7851741e816c42746b.zip
Make project custom fields available as columns on time logs (#24157).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16418 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/time_entry_query.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb
index 3d37e94da..656415d66 100644
--- a/app/models/time_entry_query.rb
+++ b/app/models/time_entry_query.rb
@@ -91,6 +91,8 @@ class TimeEntryQuery < Query
map {|cf| QueryCustomFieldColumn.new(cf) }
@available_columns += issue_custom_fields.visible.
map {|cf| QueryAssociationCustomFieldColumn.new(:issue, cf, :totalable => false) }
+ @available_columns += ProjectCustomField.visible.
+ map {|cf| QueryAssociationCustomFieldColumn.new(:project, cf) }
@available_columns
end