Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -258,7 +258,10 @@ |
259 | 259 | $affectedRevs = array(); |
260 | 260 | if ( preg_match_all( '/\br(\d{2,})\b/', $this->mMessage, $m ) ) { |
261 | 261 | foreach ( $m[1] as $rev ) { |
262 | | - $affectedRevs[] = intval( $rev ); |
| 262 | + $affectedRev = intval( $rev ); |
| 263 | + if ( $affectedRev != $this->mId ) { |
| 264 | + $affectedRevs[] = $affectedRev; |
| 265 | + } |
263 | 266 | } |
264 | 267 | } |
265 | 268 | // Also, get previous revisions that have bugs in common... |
— | — | @@ -529,7 +532,9 @@ |
530 | 533 | __METHOD__ |
531 | 534 | ); |
532 | 535 | while ( $row = $res->fetchObject() ) { |
533 | | - $refs[] = $row; |
| 536 | + if ( $this->mId != intval( $row->cr_id ) ) { |
| 537 | + $refs[] = $row; |
| 538 | + } |
534 | 539 | } |
535 | 540 | return $refs; |
536 | 541 | } |