From: kurund Date: Sun, 15 Feb 2015 15:29:34 +0000 (+0530) Subject: CRM-15909, report fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cb1dc4f38210fa8a1940149e6f15cf753a7ed385;p=civicrm-core.git CRM-15909, report fixes ---------------------------------------- * CRM-15909: Country name is not shown in report Constituent Summary https://issues.civicrm.org/jira/browse/CRM-15909 --- diff --git a/CRM/Report/Form/Contact/Summary.php b/CRM/Report/Form/Contact/Summary.php index f29e95e8db..52254944ca 100644 --- a/CRM/Report/Form/Contact/Summary.php +++ b/CRM/Report/Form/Contact/Summary.php @@ -309,6 +309,13 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form { $entryFound = TRUE; } + if (array_key_exists('civicrm_address_country_id', $row)) { + if ($value = $row['civicrm_address_country_id']) { + $rows[$rowNum]['civicrm_address_country_id'] = CRM_Core_PseudoConstant::country($value, FALSE); + } + $entryFound = TRUE; + } + // handle gender id $this->_initBasicRow($rows, $entryFound, $row, 'civicrm_contact_gender_id', $rowNum, $genders);