diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-15 18:31:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-15 18:31:45 +0000 |
commit | 8a39862b1937e9ab4dc547aff26cf8bfa6107267 (patch) | |
tree | 7005fe7d9192073845a8334d92b7aab8a271e4ea /app | |
parent | bf3066d6986e814538bb2ec59ba9b916a7b7f6ba (diff) | |
download | redmine-8a39862b1937e9ab4dc547aff26cf8bfa6107267.tar.gz redmine-8a39862b1937e9ab4dc547aff26cf8bfa6107267.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |