MDL-34657 user sort: exact match logic should be case-insensitive.

This commit is contained in:
Tim Hunt
2012-10-04 11:43:33 +01:00
parent d91750bc5a
commit c2004a7952
+1 -1
View File
@@ -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++;
}