diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-21 00:46:37 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-21 00:46:37 +0100 |
commit | 2799064573f2193309d24df899a9c0555b48fa59 (patch) | |
tree | 6c0866e7cd6b5ccdbd78ccfcc374fe1f1f2d9ccd /apps/workflowengine/lib | |
parent | 35c2a9fe0a626bbc73e4cb3b6454c71507fb94be (diff) | |
download | nextcloud-server-2799064573f2193309d24df899a9c0555b48fa59.tar.gz nextcloud-server-2799064573f2193309d24df899a9c0555b48fa59.zip |
report list of entities without array keys to frontend
lead to a blank flow settings page when a third party entity was
registered.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index 0dbe7dbfc13..bd71e7bb3c6 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -601,7 +601,7 @@ class Manager implements IManager { public function getEntitiesList(): array { $this->eventDispatcher->dispatch(IManager::EVENT_NAME_REG_ENTITY, new GenericEvent($this)); - return array_merge($this->getBuildInEntities(), $this->registeredEntities); + return array_values(array_merge($this->getBuildInEntities(), $this->registeredEntities)); } /** @@ -640,7 +640,7 @@ class Manager implements IManager { protected function getBuildInEntities(): array { try { return [ - $this->container->query(File::class), + File::class => $this->container->query(File::class), ]; } catch (QueryException $e) { $this->logger->logException($e); |