projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef1672
)
Api3 - Fix metadata for getsingle
author
Coleman Watts
<coleman@civicrm.org>
Mon, 20 Mar 2017 14:45:45 +0000
(10:45 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Mon, 20 Mar 2017 14:45:45 +0000
(10:45 -0400)
api/v3/Generic.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Generic.php
b/api/v3/Generic.php
index c4bb0c341710e1ae762f31a0c8a1985ea7e69c26..b6d0bb1cac88dcbf1779b840bfea3a3ceb62facf 100644
(file)
--- 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'])) {