Skip to content

Commit

Permalink
Merge pull request #4869 from neos/bugfix/3432
Browse files Browse the repository at this point in the history
BUGFIX: Search assets in a case-insensitive way
  • Loading branch information
kitsunet committed Feb 29, 2024
2 parents 1d59d93 + ee83133 commit 67abc65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neos.Media/Classes/Domain/Repository/AssetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public function findBySearchTermOrTags($searchTerm, array $tags = [], AssetColle
$query = $this->createQuery();

$constraints = [
$query->like('title', '%' . $searchTerm . '%'),
$query->like('resource.filename', '%' . $searchTerm . '%'),
$query->like('caption', '%' . $searchTerm . '%')
$query->like('title', '%' . $searchTerm . '%', false),
$query->like('resource.filename', '%' . $searchTerm . '%', false),
$query->like('caption', '%' . $searchTerm . '%', false)
];
foreach ($tags as $tag) {
$constraints[] = $query->contains('tags', $tag);
Expand Down

0 comments on commit 67abc65

Please sign in to comment.