From 372ad455d6c078c5bbd0482f732e5ccf16635596 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 10 Oct 2024 12:07:46 +0200 Subject: [PATCH] Revert "[BUGFIX] Fix for `$documentArray` being `null` after function `getDocumentById` is called (#1345)" This reverts commit fdc2975575afac89130e691a26230886da10fb48. --- Classes/Controller/AbstractController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index c10880f48..f933860a9 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -512,14 +512,11 @@ protected function buildSimplePagination(PaginationInterface $pagination, Pagina */ private function getDocumentByUid(int $documentId) { - // TODO: implement multiView as it is in getDocumentByUrl $doc = null; $this->document = $this->documentRepository->findOneByIdAndSettings($documentId); if ($this->document) { $doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true); - // fix for count(): Argument #1 ($value) must be of type Countable|array, null given - $this->documentArray[] = $doc; } else { $this->logger->error('Invalid UID "' . $documentId . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); }