Skip to content

Commit af4db06

Browse files
[BUGFIX] Fix missing array selector in CollectionController for search parameter (kitodo#1798)
Co-authored-by: Sebastian Meyer <[email protected]>
1 parent 79bbf4a commit af4db06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Controller/CollectionController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ public function showSortedAction(): ResponseInterface
196196
$search = $this->getParametersSafely('search');
197197

198198
$collection = null;
199-
if (!empty($search['collection']) && $search['collection']['__identity'] && MathUtility::canBeInterpretedAsInteger($search['collection']['__identity'])) {
200-
$collection = $this->collectionRepository->findByUid($search['collection']['__identity']);
199+
if (!empty($search['collection']) && MathUtility::canBeInterpretedAsInteger($search['collection'])) {
200+
$collection = $this->collectionRepository->findByUid($search['collection']);
201201
}
202202

203203
// output is done by show action

0 commit comments

Comments
 (0)