mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
Unfatal "Create Repository" UI
See: <https://github.com/facebook/phabricator/issues/584> Not all controllers in Diffusion have a DiffusionRequest. Auditors: btrahan
This commit is contained in:
parent
466af33147
commit
d5f874b493
1 changed files with 16 additions and 11 deletions
|
@ -41,6 +41,7 @@ abstract class DiffusionController extends PhabricatorController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildApplicationPage($view, array $options) {
|
public function buildApplicationPage($view, array $options) {
|
||||||
|
if ($this->diffusionRequest) {
|
||||||
$drequest = $this->getDiffusionRequest();
|
$drequest = $this->getDiffusionRequest();
|
||||||
$repository = $drequest->getRepository();
|
$repository = $drequest->getRepository();
|
||||||
$error_view = $this->buildRepositoryWarning($repository);
|
$error_view = $this->buildRepositoryWarning($repository);
|
||||||
|
@ -55,6 +56,10 @@ abstract class DiffusionController extends PhabricatorController {
|
||||||
$not_inserted = false;
|
$not_inserted = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$views = $view;
|
||||||
|
}
|
||||||
|
|
||||||
return parent::buildApplicationPage($views, $options);
|
return parent::buildApplicationPage($views, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue