diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-01 10:56:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-06-01 10:56:12 +0000 |
commit | e27deb1ecee42918baf86d92e9ac31e1df75fe60 (patch) | |
tree | b3f1036714cd1936f7ac8f09d383420dc999305a /app/models/issue_query.rb | |
parent | bf76b3b286efcb4d25951bb6fcc8f59609200269 (diff) | |
download | redmine-e27deb1ecee42918baf86d92e9ac31e1df75fe60.tar.gz redmine-e27deb1ecee42918baf86d92e9ac31e1df75fe60.zip |
Query#add_custom_fields_filters now takes a custom fields scope.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11917 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 5e0abfebe..cf6074f72 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -81,7 +81,7 @@ class IssueQuery < Query principals += Principal.member_of(all_projects) end versions = Version.visible.find_all_by_sharing('system') - issue_custom_fields = IssueCustomField.where(:is_filter => true, :is_for_all => true).all + issue_custom_fields = IssueCustomField.where(:is_for_all => true) end principals.uniq! principals.sort! |