Skip to content

Commit

Permalink
Merge pull request #5166 from neos/bugfix/user-search-case-insensitive
Browse files Browse the repository at this point in the history
BUGFIX: Case insensitive user search on PostgreSQL
  • Loading branch information
ahaeslich authored Jun 28, 2024
2 parents 59d4af2 + 8289604 commit c6e2150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Neos.Neos/Classes/Domain/Repository/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function findBySearchTerm(string $searchTerm, string $sortBy, string $sor
$query = $this->createQuery();
$query->matching(
$query->logicalOr(
$query->like('accounts.accountIdentifier', '%' . $searchTerm . '%'),
$query->like('name.fullName', '%' . $searchTerm . '%')
$query->like('accounts.accountIdentifier', '%' . $searchTerm . '%', false),
$query->like('name.fullName', '%' . $searchTerm . '%', false)
)
);
return $query->setOrderings([$sortBy => $sortDirection])->execute();
Expand Down

0 comments on commit c6e2150

Please sign in to comment.