1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Specify content source for differential.close

Test Plan:
  $ arc close-revision 1

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4041
This commit is contained in:
vrana 2012-11-26 15:19:52 -08:00
parent 210f8e0390
commit b7e8c0a300

View file

@ -45,9 +45,14 @@ final class ConduitAPI_differential_close_Method
$revision->loadRelationships();
$content_source = PhabricatorContentSource::newForSource(
PhabricatorContentSource::SOURCE_CONDUIT,
array());
$editor = new DifferentialCommentEditor(
$revision,
DifferentialAction::ACTION_CLOSE);
$editor->setContentSource($content_source);
$editor->setActor($request->getUser());
$editor->save();