Skip to content

Commit

Permalink
[BUGFIX] Fix passing page id in ToolboxController (#1372)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored Nov 17, 2024
1 parent 42356be commit f088772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/ToolboxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ private function renderSearchInDocumentTool(): void
'labelHighlightWord' => $this->settings['highlightWordInputName'],
'labelEncrypted' => $this->settings['encryptedInputName'],
'documentId' => $this->getCurrentDocumentId(),
'documentPageId' => $this->document->getPid(),
'pageId' => $this->request->getAttribute('routing')->getPageId(),
'solrEncrypted' => $this->getEncryptedCoreName() ? : ''
];

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Toolbox/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
<input type="submit" id="tx-dlf-search-in-document-button" value="{f:translate(key: 'search.submit')}" onclick="resetStart();" />
<input type="hidden" id="tx-dlf-search-in-document-start" name="{searchInDocument.labelStart}" value="0" />
<input type="hidden" id="tx-dlf-search-in-document-id" name="{searchInDocument.labelId}" value="{searchInDocument.documentId}" />
<input type="hidden" id="tx-dlf-search-in-document-pid" name="{searchInDocument.labelPid}" value="{searchInDocument.documentPageId}" />
<input type="hidden" id="tx-dlf-search-in-document-pid" name="{searchInDocument.labelPid}" value="{searchInDocument.pageId}" />
<input type="hidden" id="tx-dlf-search-in-document-page" name="{searchInDocument.labelPageUrl}" />
<input type="hidden" id="tx-dlf-search-in-document-highlight-word" name="{searchInDocument.labelHighlightWord}" />
<input type="hidden" id="tx-dlf-search-in-document-encrypted" name="{searchInDocument.labelEncrypted}" value="{searchInDocument.solrEncrypted}" />
Expand Down

0 comments on commit f088772

Please sign in to comment.