mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Fix an issue with mentioning revisions on the new EditEngine code
Summary: Ref T12020. Ref T11114. If we continue here on a mention, we try to generate `$old`, which requires reviewers to be attached. They won't be for simple codepaths like mentions. Instead, just bail early: we don't need to do anything anyway since we can't possibly find any more errors with zero transactions. Test Plan: Mentioned a revision on a task. Reviewers: chad, avivey Reviewed By: avivey Maniphest Tasks: T11114, T12020 Differential Revision: https://secure.phabricator.com/D17059
This commit is contained in:
parent
e077d2f7a7
commit
378387a078
1 changed files with 7 additions and 0 deletions
|
@ -286,6 +286,13 @@ final class DifferentialRevisionReviewersTransaction
|
|||
$actor = $this->getActor();
|
||||
$errors = array();
|
||||
|
||||
if (!$xactions) {
|
||||
// If we aren't applying new reviewer transactions, just bail. We need
|
||||
// reviewers to be attached to the revision continue validation, and
|
||||
// they won't always be (for example, when mentioning a revision).
|
||||
return $errors;
|
||||
}
|
||||
|
||||
$author_phid = $object->getAuthorPHID();
|
||||
$config_self_accept_key = 'differential.allow-self-accept';
|
||||
$allow_self_accept = PhabricatorEnv::getEnvConfig($config_self_accept_key);
|
||||
|
|
Loading…
Reference in a new issue