From c245fd99416a4dcd26a674acd2bb8e28413c1581 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 23 Oct 2018 19:06:00 +1300 Subject: [PATCH] Remove strtolower as applied to email, test --- CRM/Contact/BAO/Query.php | 2 +- tests/phpunit/CRM/Contact/BAO/QueryTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, ), -- 2.25.1