Skip to content
Snippets Groups Projects
Commit 7bea5079 authored by lobo's avatar lobo
Browse files

Merge pull request #2319 from lcdservices/CRM-13252

CRM-13252 exit nested api if getfields/getoptions action
parents 13a7de79 6ebe79c1
No related branches found
No related tags found
No related merge requests found
......@@ -444,6 +444,12 @@ function _civicrm_api_get_camel_name($entity, $version = NULL) {
*/
function _civicrm_api_call_nested_api(&$params, &$result, $action, $entity, $version) {
$entity = _civicrm_api_get_entity_name_from_camel($entity);
//we don't need to worry about nested api in the getfields/getoptions actions, so just return immediately
if (in_array(strtolower($action), array('getfields', 'getoptions'))) {
return;
}
if(strtolower($action) == 'getsingle'){
// I don't understand the protocol here, but we don't want
// $result to be a recursive array
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment