Page MenuHomePhorge

D25597.1734722938.diff
No OneTemporary

D25597.1734722938.diff

diff --git a/src/applications/transactions/controller/PhabricatorEditEngineConfigurationListController.php b/src/applications/transactions/controller/PhabricatorEditEngineConfigurationListController.php
--- a/src/applications/transactions/controller/PhabricatorEditEngineConfigurationListController.php
+++ b/src/applications/transactions/controller/PhabricatorEditEngineConfigurationListController.php
@@ -13,12 +13,11 @@
$engine_key = $request->getURIData('engineKey');
$this->setEngineKey($engine_key);
- $engine = PhabricatorEditEngine::getByKey($viewer, $engine_key)
- ->setViewer($viewer);
-
- if (!$engine->isEngineConfigurable()) {
+ $engine = PhabricatorEditEngine::getByKey($viewer, $engine_key);
+ if (!$engine || !$engine->isEngineConfigurable()) {
return new Aphront404Response();
}
+ $engine->setViewer($viewer);
$items = array();
$items[] = id(new PHUIListItemView())

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 19:28 (14 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015698
Default Alt Text
D25597.1734722938.diff (940 B)

Event Timeline