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
286ee398
Commit
286ee398
authored
Feb 05, 2021
by
mattwire
Browse files
Don't show country id in address list
parent
f4858415
Changes
2
Hide whitespace changes
Inline
Side-by-side
CRM/Civicrmpostcodelookup/Page/Civipostcode.php
View file @
286ee398
...
...
@@ -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
;
...
...
CRM/Civicrmpostcodelookup/Page/GetAddressIo.php
View file @
286ee398
...
...
@@ -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
;
...
...
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