summaryrefslogtreecommitdiffstats
path: root/app/models/issue_query.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-06 17:11:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-06 17:11:49 +0000
commit50fc36ec4466c49782b18e9a2546df33cd783cf3 (patch)
tree03e57a76c58d79881e672cc941cfac1c10a17b52 /app/models/issue_query.rb
parent47f8339e47026158dc438023b0889b9f086a43ab (diff)
downloadredmine-50fc36ec4466c49782b18e9a2546df33cd783cf3.tar.gz
redmine-50fc36ec4466c49782b18e9a2546df33cd783cf3.zip
Merged r16467 (#25501).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r--app/models/issue_query.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index 01302cfb0..42d6df40f 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -236,7 +236,6 @@ class IssueQuery < Query
end
add_custom_fields_filters(issue_custom_fields)
-
add_associations_custom_fields_filters :project, :author, :assigned_to, :fixed_version
IssueRelation::TYPES.each do |relation_type, options|
@@ -255,10 +254,7 @@ class IssueQuery < Query
def available_columns
return @available_columns if @available_columns
@available_columns = self.class.available_columns.dup
- @available_columns += (project ?
- project.all_issue_custom_fields :
- IssueCustomField
- ).visible.collect {|cf| QueryCustomFieldColumn.new(cf) }
+ @available_columns += issue_custom_fields.visible.collect {|cf| QueryCustomFieldColumn.new(cf) }
if User.current.allowed_to?(:view_time_entries, project, :global => true)
index = @available_columns.find_index {|column| column.name == :total_estimated_hours}