summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 09:22:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-03 09:22:41 +0000
commit5b61d569437221f7aaa3d02df298039e8a32ff4a (patch)
tree8d9fc9e353549ed5dfd93b0830d4efa717eac5d4 /app/models
parent09b0c3135c27f4198daf797b451f1276a94dc56c (diff)
downloadredmine-5b61d569437221f7aaa3d02df298039e8a32ff4a.tar.gz
redmine-5b61d569437221f7aaa3d02df298039e8a32ff4a.zip
Using #joins is needed here with Rails 5.
git-svn-id: http://svn.redmine.org/redmine/trunk@16608 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index dc5309b21..1e187da1f 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -368,7 +368,7 @@ class Project < ActiveRecord::Base
if version_ids.any? &&
Issue.
- includes(:project).
+ joins(:project).
where("#{Project.table_name}.lft < ? OR #{Project.table_name}.rgt > ?", lft, rgt).
where(:fixed_version_id => version_ids).
exists?