$dao = CRM_Core_DAO::executeQuery($queryString);
$rows = array();
while ($dao->fetch()) {
- if (!empty($dao->country_id)) {
- $dao->country = CRM_Core_PseudoConstant::country($dao->country_id);
- }
- if (!empty($dao->state_province_id)) {
- $dao->state_province = CRM_Core_PseudoConstant::stateProvince($dao->state_province_id);
- }
+ $query->convertToPseudoNames($dao);
$rows[$dao->participant_id] = array();
foreach ($returnProperties as $key => $dontCare) {
$rows[$dao->participant_id][$key] = isset($dao->$key) ? $dao->$key : NULL;
}
}
- 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;
}