mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
cambiada el buscador en usuarios para que sea tilde insensitive
This commit is contained in:
@ -92,7 +92,9 @@ class UserModel extends ShieldUserModel
|
||||
else {
|
||||
$builder->groupStart();
|
||||
foreach ($search as $col_search) {
|
||||
$builder->like(self::SORTABLE[$col_search[0]], $col_search[2]);
|
||||
$column = self::SORTABLE[$col_search[0]];
|
||||
$value = $col_search[2];
|
||||
$builder->where("LOWER(CONVERT($column USING utf8)) COLLATE utf8_general_ci LIKE", "%" . strtolower($value) . "%");
|
||||
}
|
||||
$builder->groupEnd();
|
||||
return $builder;
|
||||
|
||||
Reference in New Issue
Block a user