1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-29 16:08:22 +01:00

Return 404 instead of undefined variable error when trying to edit a non-existent form

Summary: E.g. https://phab-01.wmflabs.org/transactions/editengine/transactions.editengine.config/view/13/

Test Plan:
* Go to /transactions/editengine/transactions.editengine.config/view/1000000/
* Observe error
* Apply patch
* Observe 404

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D15307
This commit is contained in:
Alex Monk 2016-02-18 09:54:47 -08:00 committed by epriestley
parent 82ca92a9ef
commit f557fc9caa

View file

@ -70,6 +70,8 @@ abstract class PhabricatorEditEngineController
->executeOne();
if ($config) {
$engine = $config->getEngine();
} else {
return null;
}
if (!$engine->isEngineConfigurable()) {