Skip to content

Commit

Permalink
[BUGFIX] Use the document cache in getDocumentByUid() (#1405)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kubina <[email protected]>
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
3 people authored Dec 18, 2024
1 parent 2ac3a96 commit 89c4dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ private function getDocumentByUid(int $documentId)
$this->document = $this->documentRepository->findOneByIdAndSettings($documentId);

if ($this->document) {
$doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, true);
$doc = AbstractDocument::getInstance($this->document->getLocation(), $this->settings, false);
// fix for count(): Argument #1 ($value) must be of type Countable|array, null given
$this->documentArray[] = $doc;
} else {
Expand Down

0 comments on commit 89c4dd9

Please sign in to comment.