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
This commit is contained in:
Jean-Philippe Lang 2008-01-15 18:31:45 +00:00
parent bf3066d698
commit 8a39862b19
1 changed files with 1 additions and 1 deletions

View 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