CRM-15909, report fixes
authorkurund <kurund@civicrm.org>
Sun, 15 Feb 2015 15:29:34 +0000 (20:59 +0530)
committerkurund <kurund@civicrm.org>
Sun, 15 Feb 2015 15:29:34 +0000 (20:59 +0530)
----------------------------------------
* 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

index f29e95e8dbd6ec1d16243d666dbfe63fd2c13aaf..52254944ca5ecb2b0e6aa6a58a6532a48c09f823 100644 (file)
@@ -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);