Commit f2805816 authored by Pradeep Nayak's avatar Pradeep Nayak Committed by mattwire
Browse files

Fixed parsing of address

parent c7291b60
......@@ -119,9 +119,11 @@ class CRM_Civicrmpostcodelookup_Page_PostcodeAnywhere extends CRM_Civicrmpostcod
$addressItem = (array) $addressItemRow['Row'];
$addressLineArray[] = $addressItem['@attributes']['Company'];
$addressLineArray[] = $addressItem['@attributes']['BuildingName'];
$addressLineArray[] = $addressItem['@attributes']['BuildingNumber'];
$addressLineArray[] = $addressItem['@attributes']['PrimaryStreet'];
$addressLineArray[] = $addressItem['@attributes']['Line1'];
$addressLineArray[] = $addressItem['@attributes']['Line2'];
$addressLineArray[] = $addressItem['@attributes']['Line3'];
$addressLineArray[] = $addressItem['@attributes']['Line4'];
$addressLineArray[] = $addressItem['@attributes']['Line5'];
$addressLineArray = array_filter($addressLineArray);
$address["street_address"] = @implode(', ', $addressLineArray);
......
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