Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
UK Postcodes
Commits
f2805816
Commit
f2805816
authored
May 24, 2019
by
Pradeep Nayak
Committed by
mattwire
Jun 06, 2019
Browse files
Fixed parsing of address
parent
c7291b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Civicrmpostcodelookup/Page/PostcodeAnywhere.php
View file @
f2805816
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment