From e65c2445e0b97c864bf6003f0ea40dc7822d511c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 12 Mar 2015 13:59:57 -0400 Subject: [PATCH] CRM-15988 - Use lowercase entity name in field_id --- api/v3/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 802a93174b..aa680fb628 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -2189,7 +2189,7 @@ function _civicrm_api3_api_resolve_alias($entity, $fieldName) { if (strpos($fieldName, 'custom_') === 0 && is_numeric($fieldName[7])) { return $fieldName; } - if ($fieldName == "{$entity}_id") { + if ($fieldName == _civicrm_api_get_entity_name_from_camel($entity) . '_id') { return 'id'; } $result = civicrm_api($entity, 'getfields', array( -- 2.25.1