Project

General

Profile

Defect #8628 » fix_issue_relations.diff

Egbert van der Wal, 2014-05-12 18:10

View differences:

app/models/issue.rb (working copy)
960 960
      end
961 961

  
962 962
      # Add related issues to the queue, if they are not already in it.
963
      current_issue.relations_from.map(&:issue_to).each do |related_issue|
964
        next if except.include?(related_issue)
963
      current_issue.relations_from.each do |relation|
964
        related_issue = relation.issue_to
965
        next if ['copied_to', 'duplicates', 'relates'].include?(relation.relation_type)
966
      #current_issue.relations_from.map(&:issue_to).each do |related_issue|
967
      #  next if except.include?(related_issue)
968
        logger.error(related_issue)
965 969

  
966 970
        if (issue_status[related_issue] == eNOT_DISCOVERED)
967 971
          queue << related_issue
(1-1/3)