From: Jean-Philippe Lang Date: Tue, 15 Jan 2008 18:31:45 +0000 (+0000) Subject: Fixed: issue queries can not use custom fields marked as 'for all projects' in a... X-Git-Tag: 0.7.0-RC1~219 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a39862b1937e9ab4dc547aff26cf8bfa6107267;p=redmine.git Fixed: issue queries can not use custom fields marked as 'for all projects' in a project context. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1067 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/query.rb b/app/models/query.rb index 61a559d16..09dc0d581 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -223,7 +223,7 @@ class Query < ActiveRecord::Base return @available_columns if @available_columns @available_columns = Query.available_columns @available_columns += (project ? - project.custom_fields : + project.all_custom_fields : IssueCustomField.find(:all, :conditions => {:is_for_all => true}) ).collect {|cf| QueryCustomFieldColumn.new(cf) } end