From b030796f921700727dd3b8e7573bf624565d250d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 23 Feb 2018 08:15:14 +1100 Subject: [PATCH] (NFC) Rename fiterable fields param in _civicrm_api3_basic_array_get to be more explicit about what it is for --- api/v3/utils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 7640e9ae12..b12e53636d 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -2441,13 +2441,13 @@ function _civicrm_api3_field_value_check(&$params, $fieldName, $type = NULL) { * List of all records. * @param string $idCol * The property which defines the ID of a record - * @param array $fields + * @param array $filterableFields * List of filterable fields. * * @return array * @throws \API_Exception */ -function _civicrm_api3_basic_array_get($entity, $params, $records, $idCol, $fields) { +function _civicrm_api3_basic_array_get($entity, $params, $records, $idCol, $filterableFields) { $options = _civicrm_api3_get_options_from_params($params, TRUE, $entity, 'get'); // TODO // $sort = CRM_Utils_Array::value('sort', $options, NULL); $offset = CRM_Utils_Array::value('offset', $options); @@ -2465,7 +2465,7 @@ function _civicrm_api3_basic_array_get($entity, $params, $records, $idCol, $fiel if ($k == 'id') { $k = $idCol; } - if (in_array($k, $fields) && $record[$k] != $v) { + if (in_array($k, $filterableFields) && $record[$k] != $v) { $match = FALSE; break; } -- 2.25.1