Skip to content
Snippets Groups Projects
Commit cddb5b6f authored by eileen's avatar eileen
Browse files

fix for failing syntax tests due to not handling case

parent 7467081f
Branches
Tags
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment