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:
42abd09
)
CRM-17000 bypass separatevalues for getfields for performance
author
eileen
<emcnaughton@wikimedia.org>
Fri, 9 Oct 2015 23:29:22 +0000
(12:29 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Fri, 9 Oct 2015 23:29:57 +0000
(12:29 +1300)
api/v3/utils.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/utils.php
b/api/v3/utils.php
index c31069eb5c064bf9ea7c3a7ec76d2678a5032ddc..911419489ed02550b6dcd2e7be97ab423e759733 100644
(file)
--- a/
api/v3/utils.php
+++ b/
api/v3/utils.php
@@
-231,7
+231,9
@@
function civicrm_api3_create_success($values = 1, $params = array(), $entity = N
$result['count'] = (int) count($values);
// Convert value-separated strings to array
- _civicrm_api3_separate_values($values);
+ if ($action != 'getfields') {
+ _civicrm_api3_separate_values($values);
+ }
if ($result['count'] == 1) {
list($result['id']) = array_keys($values);