Skip to content

Commit 2afaacc

Browse files
committed
Fix passing page id in ToolboxController - but keep viewArray Key
non breaking change for Templates of passing page id in ToolboxController This is a Backport of kitodo#1372 for 5.0.x Branch
1 parent 715c91c commit 2afaacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controller/ToolboxController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private function renderSearchInDocumentTool(): void
480480
'labelHighlightWord' => $this->settings['highlightWordInputName'],
481481
'labelEncrypted' => $this->settings['encryptedInputName'],
482482
'documentId' => $this->getCurrentDocumentId(),
483-
'documentPageId' => $this->document->getPid(),
483+
'documentPageId' => $this->request->getAttribute('routing')->getPageId(),
484484
'solrEncrypted' => $this->getEncryptedCoreName() ? : ''
485485
];
486486

0 commit comments

Comments
 (0)