]> source.dussan.org Git - redmine.git/commitdiff
Fixed: issue queries can not use custom fields marked as 'for all projects' in a...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 15 Jan 2008 18:31:45 +0000 (18:31 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 15 Jan 2008 18:31:45 +0000 (18:31 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1067 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb

index 61a559d166374853c3b927434cb5e07d5d56bd84..09dc0d5818300c35ae2960a39fd92439292a43b2 100644 (file)
@@ -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