From cddb5b6f9b5075394da30d32321fc256c4bccfb5 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 11 Apr 2013 10:14:27 +1200 Subject: [PATCH] fix for failing syntax tests due to not handling case --- api/v3/Generic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Generic.php b/api/v3/Generic.php index c866c87a10..ac9c7cb024 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -69,7 +69,7 @@ function civicrm_api3_generic_getfields($apiRequest) { $unique = FALSE; case 'get': $metadata = _civicrm_api_get_fields($apiRequest['entity'], $unique, $apiRequest['params']); - if (empty($metadata['id']) && !empty($metadata[$apiRequest['entity'] . '_id'])) { + if (empty($metadata['id']) && !empty($metadata[strtolower($apiRequest['entity']) . '_id'])) { $metadata['id'] = $metadata[$lcase_entity . '_id']; $metadata['id']['api.aliases'] = array($lcase_entity . '_id'); unset($metadata[$lcase_entity . '_id']); -- 2.25.1