CRM-15160 Fix for communication_style and other options
[civicrm-core.git] / CRM / Contact / BAO / Query.php
index 5dd767f493501086597be0be44a22cfa789b5bab..4821f15a15d8238cc8ee3f6fd113f0b1b3a25cef 100644 (file)
@@ -659,7 +659,7 @@ class CRM_Contact_BAO_Query {
         }
       }
 
-      if (in_array($name, array('prefix_id', 'suffix_id', 'gender_id'))) {
+      if (in_array($name, array('prefix_id', 'suffix_id', 'gender_id', 'communication_style_id'))) {
         if (CRM_Utils_Array::value($field['pseudoconstant']['optionGroupName'], $this->_returnProperties)) {
           $makeException = TRUE;
         }