Skip to content

Commit

Permalink
BUGFIX: Prevent exception when combining asset id searchterm and asse…
Browse files Browse the repository at this point in the history
…t type filter
  • Loading branch information
Sebobo committed Aug 1, 2023
1 parent 3e71c68 commit 1f38af0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ protected function filterByTag(?string $tagId, AssetProxyRepositoryInterface $as
protected function applySearchTerm(SearchTerm $searchTerm, AssetProxyRepositoryInterface $assetProxyRepository): AssetProxyIteratorAggregate
{
if ($identifier = $searchTerm->getAssetIdentifierIfPresent()) {
// Reset the type filter as it prevents the asset from being found if it is not of the same type
$assetProxyRepository->filterByType(null);
return AssetProxyListIterator::of(
$assetProxyRepository->getAssetProxy($identifier)
);
Expand Down

0 comments on commit 1f38af0

Please sign in to comment.