Commit 286ee398 authored by mattwire's avatar mattwire
Browse files

Don't show country id in address list

parent f4858415
......@@ -74,6 +74,8 @@ class CRM_Civicrmpostcodelookup_Page_Civipostcode extends CRM_Civicrmpostcodeloo
foreach ($AddressListItem as $key => $addressItem) {
$addressLineArray = self::formatAddressLines($addressItem, TRUE);
$addressLineArray = array_filter($addressLineArray);
// Don't display country_id in address list
unset($addressLineArray['country_id']);
$addressRow['id'] = (string) $addressItem->id;
$addressRow['value'] = $postcode;
......
......@@ -194,6 +194,8 @@ class CRM_Civicrmpostcodelookup_Page_GetAddressIo extends CRM_Civicrmpostcodeloo
$addressId = $postcode . '_' . $key;
$addressLineArray = self::formatAddressLines($addressId, $addressItem);
// Don't display country_id in address list
unset($addressLineArray['country_id']);
$addressLineArray['postcode'] = $postcode;
$addressRow['id'] = $addressId;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment