projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce25e9
)
API - Improve getfields for getrefcount
author
Coleman Watts
<coleman@civicrm.org>
Sun, 15 Mar 2015 22:09:27 +0000
(18:09 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Sun, 15 Mar 2015 22:09:27 +0000
(18:09 -0400)
api/v3/Generic.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Generic.php
b/api/v3/Generic.php
index 3130fd43346738baf61ddc7f3ce8b082f29dca51..1e82908eb6db5ead061d2c7776559e6798e9030e 100644
(file)
--- 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;
}
/**