From f2805816ac7ea200d48b27ea6030d9b19ce841f2 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak <pradpnayak@gmail.com> Date: Fri, 24 May 2019 20:38:45 +0100 Subject: [PATCH] Fixed parsing of address --- CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php b/CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php index ddcf92e..63af676 100755 --- a/CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php +++ b/CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php @@ -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); -- GitLab