From 021cfd95a984d895b5f954326da2c50d444bdaaf Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 20 Mar 2017 10:45:45 -0400 Subject: [PATCH] Api3 - Fix metadata for getsingle --- api/v3/Generic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Generic.php b/api/v3/Generic.php index c4bb0c3417..b6d0bb1cac 100644 --- a/api/v3/Generic.php +++ b/api/v3/Generic.php @@ -172,6 +172,9 @@ function civicrm_api3_generic_getfields($apiRequest, $unique = TRUE) { // find any supplemental information $hypApiRequest = array('entity' => $apiRequest['entity'], 'action' => $action, 'version' => $apiRequest['version']); + if ($action == 'getsingle') { + $hypApiRequest['action'] = 'get'; + } try { list ($apiProvider, $hypApiRequest) = \Civi::service('civi_api_kernel')->resolve($hypApiRequest); if (isset($hypApiRequest['function'])) { -- 2.25.1