projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af2238
)
CRM-21214 - Fix address sharing 2 - small change
author
Daniël
<9696905+DanielvV@users.noreply.github.com>
Mon, 25 Sep 2017 09:19:16 +0000
(11:19 +0200)
committer
GitHub
<noreply@github.com>
Mon, 25 Sep 2017 09:19:16 +0000
(11:19 +0200)
[] instead of array() in api call failed Jenkins test
CRM/Core/BAO/Address.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/Address.php
b/CRM/Core/BAO/Address.php
index 27a237f0f6ced8e6bede530868269f8456ecc26f..879785fc4047dc1c02aad2704e613da88f5dff93 100644
(file)
--- a/
CRM/Core/BAO/Address.php
+++ b/
CRM/Core/BAO/Address.php
@@
-181,10
+181,10
@@
class CRM_Core_BAO_Address extends CRM_Core_DAO_Address {
//if address is already shared, share the master address with all children (prevent chaining)
if ($address->master_id > 0 && $value['id'] != $value['master_id']) {
- $result = civicrm_api3('Address', 'get',
[
+ $result = civicrm_api3('Address', 'get',
array(
'return' => array("contact_id"),
'master_id' => $address->id,
-
]
);
+
)
);
if ($result['count'] > 0) {
$params_copy['address'][1] = $params;
foreach ($result['values'] as $key => $value) {