From 8289604446e438e1f69b49bc1e3a300922137092 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Thu, 27 Jun 2024 13:35:10 +0200 Subject: [PATCH] BUGFIX: Case insensitive user search on Postgres PostgreSQL is by default case sensitive and its hard to find users depending on their name in the users module. --- Neos.Neos/Classes/Domain/Repository/UserRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Neos.Neos/Classes/Domain/Repository/UserRepository.php b/Neos.Neos/Classes/Domain/Repository/UserRepository.php index c1d3b6f41ff..5445e674242 100644 --- a/Neos.Neos/Classes/Domain/Repository/UserRepository.php +++ b/Neos.Neos/Classes/Domain/Repository/UserRepository.php @@ -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();