From 72b053573971bd4e1630087a5adf82a50c455b64 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 10 Oct 2015 12:29:22 +1300 Subject: [PATCH] CRM-17000 bypass separatevalues for getfields for performance --- api/v3/utils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index c31069eb5c..911419489e 100644 --- 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); -- 2.25.1