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:
parent
bf3066d698
commit
8a39862b19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue