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:
f2f0f5f
)
Handle new flattened custom field return format
author
Coleman Watts
<coleman@civicrm.org>
Sat, 14 Sep 2019 22:45:22 +0000
(18:45 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Sat, 14 Sep 2019 22:45:22 +0000
(18:45 -0400)
Civi/Test/Api3TestTrait.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Test/Api3TestTrait.php
b/Civi/Test/Api3TestTrait.php
index 1c99c0490b42d3e61f84014020a4704a7d43216e..d844012e0dcc21dce4b6c6fb2169502981a65a2f 100644
(file)
--- a/
Civi/Test/Api3TestTrait.php
+++ b/
Civi/Test/Api3TestTrait.php
@@
-572,13
+572,11
@@
trait Api3TestTrait {
}
// Resolve custom field names
foreach ($custom as $group => $fields) {
- if (isset($row[$group])) {
- foreach ($fields as $field => $v3FieldName) {
- if (isset($row[$group][$field])) {
- $result[$index][$v3FieldName] = $row[$group][$field];
- }
+ foreach ($fields as $field => $v3FieldName) {
+ if (isset($row["$group.$field"])) {
+ $result[$index][$v3FieldName] = $row["$group.$field"];
+ unset($result[$index]["$group.$field"]);
}
- unset($result[$index][$group]);
}
}
}