From 26cd86791fd0f69f87679a4480c9dd2ff96c5bba Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 19 Apr 2024 17:58:59 +0200 Subject: [PATCH] fix: do not overwrite AllTables with tutorial one Signed-off-by: Arthur Schiwon --- lib/Service/TableService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/TableService.php b/lib/Service/TableService.php index 493e13ed0..55ad1c64b 100644 --- a/lib/Service/TableService.php +++ b/lib/Service/TableService.php @@ -110,7 +110,7 @@ public function findAll(?string $userId = null, bool $skipTableEnhancement = fal if (count($allTables) === 0 && $createTutorial) { try { $tutorialTable = $this->create($this->l->t('Tutorial'), 'tutorial', '🚀'); - $allTables = [$tutorialTable->getId() => $tutorialTable]; + $allTables[$tutorialTable->getId()] = $tutorialTable; } catch (InternalError|PermissionError|DoesNotExistException|MultipleObjectsReturnedException|OcpDbException $e) { $this->logger->error($e->getMessage(), ['exception' => $e]); throw new InternalError(get_class($this) . ' - ' . __FUNCTION__ . ': '.$e->getMessage());