git-svn-id: http://svn.redmine.org/redmine/trunk@16608 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.4.0
@@ -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? |