fix for failing test search result
authorEileen McNaughton <eileen@fuzion.co.nz>
Fri, 27 Jun 2014 02:58:00 +0000 (14:58 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 27 Jun 2014 02:58:00 +0000 (14:58 +1200)
CRM/Contact/BAO/Query.php

index af75015cd3ecaf5760a7020f40a32af40d146fc7..d77c787d44af8f4ab2042291efd968f0ab2a34a0 100644 (file)
@@ -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);