From: kurund Date: Tue, 20 Aug 2013 09:55:36 +0000 (+0530) Subject: CRM-13206, fixed quill X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bd3728fb183fdbf5c86fc0b060db33e73f05e042;p=civicrm-core.git 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 --- 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)) {