]> source.dussan.org Git - nextcloud-server.git/commitdiff
report list of entities without array keys to frontend 18509/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 20 Dec 2019 23:46:37 +0000 (00:46 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 20 Dec 2019 23:46:37 +0000 (00:46 +0100)
lead to a blank flow settings page when a third party entity was
registered.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/workflowengine/lib/Manager.php

index 0dbe7dbfc13008879dbcee3cbbfc1012dd9a2bc5..bd71e7bb3c623490906f6d22569d5efbad3ade1a 100644 (file)
@@ -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);