Differential D21457 Diff 51063 src/applications/differential/xaction/DifferentialRevisionRepositoryTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionRepositoryTransaction.php
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
$repository = id(new PhabricatorRepositoryQuery()) | $repository = id(new PhabricatorRepositoryQuery()) | ||||
->setViewer($actor) | ->setViewer($actor) | ||||
->withPHIDs(array($new_value)) | ->withPHIDs(array($new_value)) | ||||
->executeOne(); | ->executeOne(); | ||||
if (!$repository) { | if (!$repository) { | ||||
$errors[] = $this->newInvalidError( | $errors[] = $this->newInvalidError( | ||||
pht( | pht( | ||||
'Repository "%s" is not a valid repository, or you do not have '. | 'Repository "%s" is not a valid repository, or you do not have '. | ||||
'permission to view it.'), | 'permission to view it.', | ||||
$new_value), | |||||
$xaction); | $xaction); | ||||
} | } | ||||
} | } | ||||
return $errors; | return $errors; | ||||
} | } | ||||
} | } |