We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e8d97 commit 061c1c1Copy full SHA for 061c1c1
src/applications/herald/adapter/HeraldDifferentialAdapter.php
@@ -20,13 +20,17 @@ public function setDiff(DifferentialDiff $diff) {
20
public function loadRepository() {
21
if ($this->repository === false) {
22
$repository_phid = $this->getObject()->getRepositoryPHID();
23
+
24
if ($repository_phid) {
25
$repository = id(new PhabricatorRepositoryQuery())
26
->setViewer(PhabricatorUser::getOmnipotentUser())
27
->withPHIDs(array($repository_phid))
28
->needProjectPHIDs(true)
29
->executeOne();
30
+ } else {
31
+ $repository = null;
32
}
33
34
$this->repository = $repository;
35
36
0 commit comments