Project

General

Profile

Defect #33206 » full_qualified_version_class.patch

Alexander Meindl, 2020-03-29 08:54

View differences:

app/models/issue.rb
1758 1758
      # a different project and that is not systemwide shared
1759 1759
      Issue.joins(:project, :fixed_version).
1760 1760
        where("#{Issue.table_name}.fixed_version_id IS NOT NULL" +
1761
          " AND #{Issue.table_name}.project_id <> #{Version.table_name}.project_id" +
1762
          " AND #{Version.table_name}.sharing <> 'system'").
1761
          " AND #{Issue.table_name}.project_id <> #{::Version.table_name}.project_id" +
1762
          " AND #{::Version.table_name}.sharing <> 'system'").
1763 1763
        where(conditions).each do |issue|
1764 1764
        next if issue.project.nil? || issue.fixed_version.nil?
1765 1765
        unless issue.project.shared_versions.include?(issue.fixed_version)
(1-1/2)