From 04e67ed04177f4f789784d7851741e816c42746b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 18 Mar 2017 08:45:09 +0000 Subject: [PATCH] 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 --- app/models/time_entry_query.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5