From 5050d5d4808b3de757ad6cc72e09027febb28d17 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 15 Mar 2015 18:09:27 -0400 Subject: [PATCH] API - Improve getfields for getrefcount --- api/v3/Generic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/v3/Generic.php b/api/v3/Generic.php index 3130fd4334..1e82908eb6 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -286,9 +286,10 @@ function civicrm_api3_generic_getvalue($apiRequest) { * * @param array $params */ -function _civicrm_api3_generic_getrefcount_spec(&$params) { +function _civicrm_api3_generic_getrefcount_spec(&$params, $apiRequest) { $params['id']['api.required'] = 1; - $params['id']['title'] = 'Entity ID'; + $params['id']['title'] = $apiRequest['entity'] . ' ID'; + $params['id']['type'] = CRM_Utils_Type::T_INT; } /** -- 2.25.1