Skip to content

Commit

Permalink
report list of entities without array keys to frontend
Browse files Browse the repository at this point in the history
lead to a blank flow settings page when a third party entity was
registered.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Dec 20, 2019
1 parent 35c2a9f commit 2799064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/workflowengine/lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public function formatOperation(array $operation): array {
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));
}

/**
Expand Down Expand Up @@ -640,7 +640,7 @@ public function registerCheck(ICheck $check): void {
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);
Expand Down

0 comments on commit 2799064

Please sign in to comment.