From 0f72b77b321e802ecef75356df09e7d0389b71fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=B6lzel?= <142507449+fschoelzel@users.noreply.github.com> Date: Sat, 1 Feb 2025 02:41:08 +0100 Subject: [PATCH] [BUGFIX] Fix passing page id in ToolboxController - but keep viewArray Key (#1438) Co-authored-by: Sebastian Meyer --- Classes/Controller/ToolboxController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/ToolboxController.php b/Classes/Controller/ToolboxController.php index 6eac3ca78..a131d4ced 100644 --- a/Classes/Controller/ToolboxController.php +++ b/Classes/Controller/ToolboxController.php @@ -511,7 +511,7 @@ private function renderSearchInDocumentTool(): void 'labelHighlightWord' => $this->settings['highlightWordInputName'], 'labelEncrypted' => $this->settings['encryptedInputName'], 'documentId' => $this->getCurrentDocumentId(), - 'documentPageId' => $this->document->getPid(), + 'documentPageId' => $this->request->getAttribute('routing')->getPageId(), 'solrEncrypted' => $this->getEncryptedCoreName() ? : '' ];