mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +01:00
When reclaiming an "Abandoned + Draft" revision, return it to "Draft", not "Needs Review"
Summary: Depends on D19287. Ref T13110. Currently, "Abandon" and then "Reclaim" moves you out of "Draft" without setting the "Should Broadcast" flag. Keep these revisions in draft instead. Test Plan: Reclaimed an abandoned + draft revision, got a draft revision instead of a "needs review + nonbroadcast" revision (which isn't a meaningful state). Maniphest Tasks: T13110 Differential Revision: https://secure.phabricator.com/D19288
This commit is contained in:
parent
adf8fdef0e
commit
f4f3311312
1 changed files with 6 additions and 2 deletions
|
@ -48,8 +48,12 @@ final class DifferentialRevisionReclaimTransaction
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue