1
0
Fork 0
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:
epriestley 2014-04-30 03:47:54 -07:00
parent 466af33147
commit d5f874b493

View file

@ -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);
} }