From 9131c5641673e1cbfb015038d3657263369bde80 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 20 Aug 2013 14:17:47 +0530 Subject: [PATCH] CRM-13206 fix ---------------------------------------- * CRM-13206: Use of 'Preferred Language' filter in advance search doesn't fetch proper result http://issues.civicrm.org/jira/browse/CRM-13206 --- CRM/Contact/BAO/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index fef7786543..808a6f3147 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -394,7 +394,7 @@ class CRM_Contact_BAO_Query { static $_relationshipTempTable = NULL; public $_pseudoConstantsSelect = array(); - + /** * class constructor which also does all the work * @@ -5018,7 +5018,7 @@ AND displayRelType.is_active = 1 $qill = implode(', ', $newValues); } } - else { + elseif (!array_key_exists($value, $selectValues)) { // its a string, lets get the int value $value = array_search($value, $selectValues); } -- 2.25.1