diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php index 09a7e676b2..952c45e014 100644 --- a/src/applications/differential/editor/DifferentialTransactionEditor.php +++ b/src/applications/differential/editor/DifferentialTransactionEditor.php @@ -1902,6 +1902,16 @@ final class DifferentialTransactionEditor return $section; } + protected function willPublish(PhabricatorLiskDAO $object, array $xactions) { + // Reload to pick up the active diff and reviewer status. + return id(new DifferentialRevisionQuery()) + ->setViewer($this->getActor()) + ->needReviewerStatus(true) + ->needActiveDiffs(true) + ->withIDs(array($object->getID())) + ->executeOne(); + } + protected function getCustomWorkerState() { return array( 'changedPriorToCommitURI' => $this->changedPriorToCommitURI,