Patch by Alexander Meindl.
git-svn-id: http://svn.redmine.org/redmine/trunk@20760
e93f8b46-1217-0410-a6f0-
8f06a7374b81
# a different project and that is not systemwide shared
Issue.joins(:project, :fixed_version).
where("#{Issue.table_name}.fixed_version_id IS NOT NULL" +
- " AND #{Issue.table_name}.project_id <> #{Version.table_name}.project_id" +
- " AND #{Version.table_name}.sharing <> 'system'").
+ " AND #{Issue.table_name}.project_id <> #{::Version.table_name}.project_id" +
+ " AND #{::Version.table_name}.sharing <> 'system'").
where(conditions).each do |issue|
next if issue.project.nil? || issue.fixed_version.nil?