Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2688446
D25597.1734722938.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
940 B
Referenced Files
None
Subscribers
None
D25597.1734722938.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25597: Fix exception accessing a non-existing EditEngine
Attached
Detach File
Event Timeline
Log In to Comment