From cb1dc4f38210fa8a1940149e6f15cf753a7ed385 Mon Sep 17 00:00:00 2001 From: kurund Date: Sun, 15 Feb 2015 20:59:34 +0530 Subject: [PATCH] CRM-15909, report fixes ---------------------------------------- * CRM-15909: Country name is not shown in report Constituent Summary https://issues.civicrm.org/jira/browse/CRM-15909 --- CRM/Report/Form/Contact/Summary.php | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.25.1