Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -35,7 +35,8 @@ |
36 | 36 | $view->execute(); |
37 | 37 | return; |
38 | 38 | } |
39 | | - $this->mStatus = $this->mStatus ? $this->mStatus : $this->mRev->getStatus(); |
| 39 | + if( $this->mStatus == '' ) |
| 40 | + $this->mStatus = $this->mRev->getStatus(); |
40 | 41 | |
41 | 42 | $redirectOnPost = $this->checkPostings(); |
42 | 43 | if ( $redirectOnPost ) { |
— | — | @@ -247,7 +248,7 @@ |
248 | 249 | $repo = $this->mRepo->getName(); |
249 | 250 | $rev = $this->mRev->getId(); |
250 | 251 | return Xml::openElement( 'select', array( 'name' => 'wpStatus' ) ) . |
251 | | - self::buildStatusList( $this->mRev->getStatus(), $this ) . |
| 252 | + self::buildStatusList( $this->mStatus, $this ) . |
252 | 253 | xml::closeElement( 'select' ); |
253 | 254 | } else { |
254 | 255 | return htmlspecialchars( $this->statusDesc( $this->mRev->getStatus() ) ); |