From 626260f3899c71f5c79499ef2d309cd4b3a3bfe8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 27 Jun 2014 14:58:00 +1200 Subject: [PATCH] fix for failing test search result --- CRM/Contact/BAO/Query.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index af75015cd3..d77c787d44 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2554,6 +2554,9 @@ class CRM_Contact_BAO_Query { elseif (strpos($name, '-phone') != 0) { $locationTypeName = 'phone'; } + elseif (strpos($name, '-email') != 0) { + $locationTypeName = 'email'; + } if($locationTypeName) { //we have a join on an location table - possibly in conjunction with search builder - CRM-14263 $parts = explode('-', $name); -- 2.25.1