Index: trunk/extensions/CodeReview/api/ApiRevisionUpdate.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | |
47 | 47 | $revisionCommitter = new CodeRevisionCommitterApi( $repo, $rev ); |
48 | 48 | |
49 | | - $revisionCommitter->revisionUpdate( |
| 49 | + $commentID = $revisionCommitter->revisionUpdate( |
50 | 50 | $params['status'], |
51 | 51 | $params['addtags'], |
52 | 52 | $params['removetags'], |
— | — | @@ -54,6 +54,11 @@ |
55 | 55 | ); |
56 | 56 | |
57 | 57 | $r = array( 'result' => 'Success' ); |
| 58 | + |
| 59 | + if ( $commentID !== 0 ) { |
| 60 | + $r['commentid'] = intval($commentID); |
| 61 | + } |
| 62 | + |
58 | 63 | $this->getResult()->addValue( null, $this->getModuleName(), $r ); |
59 | 64 | } |
60 | 65 | |