fix: hidden attachment icon on archived cards

Signed-off-by: Luka Trovic <luka@nextcloud.com>
This commit is contained in:
Luka Trovic
2022-04-05 18:29:47 +02:00
parent 0649db673a
commit c9bb49e0f7

View File

@@ -181,6 +181,7 @@ class StackService {
if (array_key_exists($card->id, $labels)) { if (array_key_exists($card->id, $labels)) {
$cards[$cardIndex]->setLabels($labels[$card->id]); $cards[$cardIndex]->setLabels($labels[$card->id]);
} }
$cards[$cardIndex]->setAttachmentCount($this->attachmentService->count($card->getId()));
} }
$stacks[$stackIndex]->setCards($cards); $stacks[$stackIndex]->setCards($cards);
} }