mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Fix missing EditEngineConfig on indirect pathway through conduit.query
Summary: Fixes T9772. We now need an EditEngineConfiguration to do interesting things with EditEngine, but this public API wasn't properly making sure we have one. Test Plan: Called `conduit.query` from web console. Fatal prior to patch; success afterward. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9772 Differential Revision: https://secure.phabricator.com/D14475
This commit is contained in:
parent
bb9b25a7ba
commit
7e3d8082df
1 changed files with 5 additions and 0 deletions
|
@ -961,6 +961,11 @@ abstract class PhabricatorEditEngine
|
|||
}
|
||||
|
||||
public function getAllEditTypes() {
|
||||
$config = $this->loadEditEngineConfiguration(null);
|
||||
if (!$config) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$object = $this->newEditableObject();
|
||||
$fields = $this->buildEditFields($object);
|
||||
return $this->getAllEditTypesFromFields($fields);
|
||||
|
|
Loading…
Reference in a new issue