Page MenuHomePhorge

D25597.1736755028.diff
No OneTemporary

D25597.1736755028.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
Mon, Jan 13, 07:57 (5 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113089
Default Alt Text
D25597.1736755028.diff (940 B)

Event Timeline