hard code array of address components to unset
This commit is contained in:
parent
d910ce4846
commit
48164479f7
1 changed files with 6 additions and 1 deletions
|
@ -347,7 +347,12 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
}
|
||||
}
|
||||
if ($unset_address_params) {
|
||||
foreach($required_address_components as $req) {
|
||||
foreach([
|
||||
'street_address',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country',
|
||||
] as $req) {
|
||||
unset($params[$req]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue