From: eileen Date: Tue, 23 Oct 2018 06:06:00 +0000 (+1300) Subject: Remove strtolower as applied to email, test X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c245fd99416a4dcd26a674acd2bb8e28413c1581;p=civicrm-core.git Remove strtolower as applied to email, test --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 027d8165df..80a8b1f068 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -3490,7 +3490,7 @@ WHERE $smartGroupClause return; } - $n = strtolower(trim($value)); + $n = trim($value); if ($n) { if (substr($n, 0, 1) == '"' && substr($n, -1, 1) == '"' diff --git a/tests/phpunit/CRM/Contact/BAO/QueryTest.php b/tests/phpunit/CRM/Contact/BAO/QueryTest.php index 96c380d3dc..14dcc53a52 100644 --- a/tests/phpunit/CRM/Contact/BAO/QueryTest.php +++ b/tests/phpunit/CRM/Contact/BAO/QueryTest.php @@ -175,7 +175,7 @@ class CRM_Contact_BAO_QueryTest extends CiviUnitTestCase { 0 => array( 0 => 'email', 1 => 'LIKE', - 2 => 'secondary@example.com', + 2 => 'sEcondary@example.com', 3 => 0, 4 => 1, ),