aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-23 11:34:07 +0100
committerGitHub <noreply@github.com>2019-12-23 11:34:07 +0100
commit6d96b3478498cc55865b32d91d8eb3019d44a538 (patch)
treeff04946e99003309b224c75f965e7c11c33c71f5
parentf8349208ebfaaff1d24095eec90d3213fb6756fa (diff)
parent2799064573f2193309d24df899a9c0555b48fa59 (diff)
downloadnextcloud-server-6d96b3478498cc55865b32d91d8eb3019d44a538.tar.gz
nextcloud-server-6d96b3478498cc55865b32d91d8eb3019d44a538.zip
Merge pull request #18509 from nextcloud/fix/noid/flow-blank-settings-custom-entity
Flow: report list of entities without array keys to frontend
-rw-r--r--apps/workflowengine/lib/Manager.php4
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);