Rails4: replace deprecated find_all_by_* at IssueQuery model
git-svn-id: http://svn.redmine.org/redmine/trunk@12498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d020a06c5c
commit
52bcc01b32
|
@ -142,7 +142,7 @@ class IssueQuery < Query
|
||||||
if all_projects.any?
|
if all_projects.any?
|
||||||
principals += Principal.member_of(all_projects)
|
principals += Principal.member_of(all_projects)
|
||||||
end
|
end
|
||||||
versions = Version.visible.find_all_by_sharing('system')
|
versions = Version.visible.where(:sharing => 'system').all
|
||||||
issue_custom_fields = IssueCustomField.where(:is_for_all => true)
|
issue_custom_fields = IssueCustomField.where(:is_for_all => true)
|
||||||
end
|
end
|
||||||
principals.uniq!
|
principals.uniq!
|
||||||
|
|
Loading…
Reference in New Issue