From 3106ad7cfc48dc2d015ffa7e360ab243218b00a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 17 Jul 2023 16:54:20 +0200 Subject: [PATCH] fix: Properly export cards as a child element of the related stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Command/UserExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Command/UserExport.php b/lib/Command/UserExport.php index b3c35197e..26fac40f2 100644 --- a/lib/Command/UserExport.php +++ b/lib/Command/UserExport.php @@ -96,7 +96,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $data[$board->getId()] = (array)$fullBoard->jsonSerialize(); $stacks = $this->stackMapper->findAll($board->getId()); foreach ($stacks as $stack) { - $data[$board->getId()]['stacks'][] = (array)$stack->jsonSerialize(); + $data[$board->getId()]['stacks'][$stack->getId()] = (array)$stack->jsonSerialize(); $cards = $this->cardMapper->findAllByStack($stack->getId()); foreach ($cards as $card) { $fullCard = $this->cardMapper->find($card->getId());