Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2874719
D25597.1736960605.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.1736960605.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
Wed, Jan 15, 17:03 (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113089
Default Alt Text
D25597.1736960605.diff (940 B)
Attached To
Mode
D25597: Fix exception accessing a non-existing EditEngine
Attached
Detach File
Event Timeline
Log In to Comment