diff options
-rw-r--r-- | app/models/project.rb | 2 |
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? |