]> source.dussan.org Git - redmine.git/commitdiff
Merged r20760 from trunk to 4.1-stable (#33206).
authorGo MAEDA <maeda@farend.jp>
Thu, 4 Mar 2021 00:42:13 +0000 (00:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 4 Mar 2021 00:42:13 +0000 (00:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@20761 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 690af5135054e2e9ae93d59dfa67dd6c7966f1df..6a26cf5de66f2824076fe9d2ee5191bd588cad32 100644 (file)
@@ -1736,8 +1736,8 @@ class Issue < ActiveRecord::Base
       # 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?
         unless issue.project.shared_versions.include?(issue.fixed_version)