Skip to content
Snippets Groups Projects
Unverified Commit 6d96b347 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #18509 from nextcloud/fix/noid/flow-blank-settings-custom-entity

Flow: report list of entities without array keys to frontend
parents f8349208 27990645
No related branches found
No related tags found
No related merge requests found
...@@ -601,7 +601,7 @@ class Manager implements IManager { ...@@ -601,7 +601,7 @@ class Manager implements IManager {
public function getEntitiesList(): array { public function getEntitiesList(): array {
$this->eventDispatcher->dispatch(IManager::EVENT_NAME_REG_ENTITY, new GenericEvent($this)); $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 { ...@@ -640,7 +640,7 @@ class Manager implements IManager {
protected function getBuildInEntities(): array { protected function getBuildInEntities(): array {
try { try {
return [ return [
$this->container->query(File::class), File::class => $this->container->query(File::class),
]; ];
} catch (QueryException $e) { } catch (QueryException $e) {
$this->logger->logException($e); $this->logger->logException($e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment