Page MenuHomePhabricator

D19288.id46154.diff
No OneTemporary

D19288.id46154.diff

diff --git a/src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php b/src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php
--- a/src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php
+++ b/src/applications/differential/xaction/DifferentialRevisionReclaimTransaction.php
@@ -48,8 +48,12 @@
}
public function applyInternalEffects($object, $value) {
- $status_review = DifferentialRevisionStatus::NEEDS_REVIEW;
- $object->setModernRevisionStatus($status_review);
+ if ($object->getShouldBroadcast()) {
+ $new_status = DifferentialRevisionStatus::NEEDS_REVIEW;
+ } else {
+ $new_status = DifferentialRevisionStatus::DRAFT;
+ }
+ $object->setModernRevisionStatus($new_status);
}
protected function validateAction($object, PhabricatorUser $viewer) {

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 27, 11:19 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722394
Default Alt Text
D19288.id46154.diff (870 B)

Event Timeline