Skip to content

Commit

Permalink
Merge pull request #23 from nishant-bhorodia/PG-107
Browse files Browse the repository at this point in the history
PG-107
  • Loading branch information
robinmitra committed Sep 8, 2015
2 parents 5ef8f7d + 74db661 commit 885d3ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CRM/Civigiftaid/Report/Form/Contribute/GiftAid.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,22 @@ public function alterDisplay(&$rows) {

$entryFound = TRUE;
}

// handle State/Province Codes
if (array_key_exists('civicrm_address_state_province_id', $row)) {
if ($value = $row['civicrm_address_state_province_id']) {
$rows[$rowNum]['civicrm_address_state_province_id'] = CRM_Core_PseudoConstant::stateProvince($value, FALSE);
}
$entryFound = TRUE;
}

// handle Country Codes
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;
}

// skip looking further in rows, if first row itself doesn't
// have the column we need
Expand Down

0 comments on commit 885d3ff

Please sign in to comment.