From: Coleman Watts Date: Sun, 15 Mar 2015 22:09:27 +0000 (-0400) Subject: API - Improve getfields for getrefcount X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5050d5d4808b3de757ad6cc72e09027febb28d17;p=civicrm-core.git API - Improve getfields for getrefcount --- 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; } /**