CRM-13206, fixed quill
authorkurund <kurund@civicrm.org>
Tue, 20 Aug 2013 09:55:36 +0000 (15:25 +0530)
committerkurund <kurund@civicrm.org>
Tue, 20 Aug 2013 09:55:36 +0000 (15:25 +0530)
----------------------------------------
* 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

index 808a6f3147dc19104b275ce042a1b35c862dd1bd..0485f70ff044780474f0babc8c443a69bdac887f 100644 (file)
@@ -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)) {