MDL-34657 user sort: exact match logic should be case-insensitive.
This commit is contained in:
+1
-1
@@ -252,7 +252,7 @@ function users_order_by_sql($usertablealias = '', $search = null, context $conte
|
||||
|
||||
$fieldstocheck = array_merge(array('firstname', 'lastname'), get_extra_user_fields($context));
|
||||
foreach ($fieldstocheck as $key => $field) {
|
||||
$exactconditions[] = $tableprefix . $field . ' = :' . $paramkey;
|
||||
$exactconditions[] = 'LOWER(' . $tableprefix . $field . ') = LOWER(:' . $paramkey . ')';
|
||||
$params[$paramkey] = $search;
|
||||
$paramkey++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user