From bd3728fb183fdbf5c86fc0b060db33e73f05e042 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 20 Aug 2013 15:25:36 +0530 Subject: [PATCH] CRM-13206, fixed quill ---------------------------------------- * 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 808a6f3147..0485f70ff0 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4998,7 +4998,14 @@ AND displayRelType.is_active = 1 $dataType = 'String', $useIDsOnly = FALSE ) { - $qill = $value; + + if (!empty($selectValues)) { + $qill = $selectValues[$value]; + } + else { + $qill = $value; + } + $pseudoFields = array('email_greeting', 'postal_greeting', 'addressee', 'gender_id', 'prefix_id', 'suffix_id'); if (is_numeric($value)) { -- 2.25.1