From 11b2ec227b3bab4e0f24dd5819502c6e74db51eb Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Thu, 30 Apr 2026 10:53:28 +0200 Subject: [PATCH 1/2] Use Studio Type. --- src/DataIndex/Grid/GridSearch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DataIndex/Grid/GridSearch.php b/src/DataIndex/Grid/GridSearch.php index 45ea97270..36cb73dff 100644 --- a/src/DataIndex/Grid/GridSearch.php +++ b/src/DataIndex/Grid/GridSearch.php @@ -112,8 +112,9 @@ public function searchElementsForUser( GridParameter $gridParameter, UserInterface $user ): AssetSearchResult|DataObjectSearchResult|DocumentSearchResult { + $type = $this->getStudioElementType($type); /** @var AssetQueryInterface|DataObjectQueryInterface|DocumentQueryInterface $query */ - $query = $this->getSearchQuery($type, $gridParameter, $user); + $query = $this->getSearchQuery($type, $gridParameter, $user, ); return match($type) { ElementTypes::TYPE_ASSET => $this->assetSearchService->searchAssets($query), @@ -131,6 +132,7 @@ public function searchElementIdsForUser( GridParameter $gridParameter, UserInterface $user ): array { + $type = $this->getStudioElementType($type); /** @var AssetQueryInterface|DataObjectQueryInterface $query */ $query = $this->getSearchQuery($type, $gridParameter, $user); @@ -147,7 +149,6 @@ private function getSearchQuery( UserInterface $user ): QueryInterface { $filter = $gridParameter->getFilters(); - $type = $this->getStudioElementType($type); $filter = $this->setFilterPath($filter, $type, $gridParameter->getFolderId(), $user); $query = $this->queryFactory->create($type); From 7d9bf18196e561fd3d9ae924cfb7eea860a7270c Mon Sep 17 00:00:00 2001 From: Martin Eiber Date: Thu, 30 Apr 2026 11:02:06 +0200 Subject: [PATCH 2/2] Fix --- src/DataIndex/Grid/GridSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataIndex/Grid/GridSearch.php b/src/DataIndex/Grid/GridSearch.php index 36cb73dff..35f4015ec 100644 --- a/src/DataIndex/Grid/GridSearch.php +++ b/src/DataIndex/Grid/GridSearch.php @@ -114,7 +114,7 @@ public function searchElementsForUser( ): AssetSearchResult|DataObjectSearchResult|DocumentSearchResult { $type = $this->getStudioElementType($type); /** @var AssetQueryInterface|DataObjectQueryInterface|DocumentQueryInterface $query */ - $query = $this->getSearchQuery($type, $gridParameter, $user, ); + $query = $this->getSearchQuery($type, $gridParameter, $user); return match($type) { ElementTypes::TYPE_ASSET => $this->assetSearchService->searchAssets($query),