----------------------------------------
* CRM-13206: Use of 'Preferred Language' filter in advance search doesn't fetch proper result
http://issues.civicrm.org/jira/browse/CRM-13206
$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)) {