fix_issue_relations.diff

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

Download (655 Bytes)

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|
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)
964 966
        next if except.include?(related_issue)
965 967

  
966 968
        if (issue_status[related_issue] == eNOT_DISCOVERED)