From: eileen Date: Fri, 9 Oct 2015 23:29:22 +0000 (+1300) Subject: CRM-17000 bypass separatevalues for getfields for performance X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72b053573971bd4e1630087a5adf82a50c455b64;p=civicrm-core.git CRM-17000 bypass separatevalues for getfields for performance --- 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);