Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -834,6 +834,7 @@ |
835 | 835 | public function addReferencesFrom( $revs ) { |
836 | 836 | $data = array(); |
837 | 837 | foreach ( array_unique( (array)$revs ) as $rev ) { |
| 838 | + $rev = intval( ltrim( $rev, 'r' ) ); |
838 | 839 | if ( $rev > $this->getId() ) { |
839 | 840 | $data[] = array( |
840 | 841 | 'cf_repo_id' => $this->getRepoId(), |
— | — | @@ -862,6 +863,7 @@ |
863 | 864 | public function addReferencesTo( $revs ) { |
864 | 865 | $data = array(); |
865 | 866 | foreach ( array_unique( (array)$revs ) as $rev ) { |
| 867 | + $rev = intval( ltrim( $rev, 'r' ) ); |
866 | 868 | if ( $rev < $this->getId() ) { |
867 | 869 | $data[] = array( |
868 | 870 | 'cf_repo_id' => $this->getRepoId(), |
Index: trunk/extensions/CodeReview/ui/CodeRevisionView.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | $this->mStrikeSignoffs = $wgRequest->getCheck( 'wpStrikeSignoffs' ) ? |
54 | 54 | $this->mSelectedSignoffs : array(); |
55 | 55 | $this->mAddReference = $wgRequest->getCheck( 'wpAddReferenceSubmit' ) ? |
56 | | - $wgRequest->getIntArray( 'wpAddReference', array() ) : array(); |
| 56 | + $wgRequest->getArray( 'wpAddReference', array() ) : array(); |
57 | 57 | $this->mRemoveReferences = $wgRequest->getCheck( 'wpRemoveReferences' ) ? |
58 | 58 | $wgRequest->getIntArray( 'wpReferences', array() ) : array(); |
59 | 59 | } |