Page MenuHomePhabricator

D19288.id46170.diff
No OneTemporary

D19288.id46170.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
Sun, Mar 30, 11:34 PM (6 d, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722394
Default Alt Text
D19288.id46170.diff (870 B)

Event Timeline