✅️ meet standard for getsingle api response
return array with object values instead of api success response
This commit is contained in:
parent
88a77456b8
commit
d904ae931f
11 changed files with 59 additions and 95 deletions
|
@ -65,10 +65,5 @@ function civicrm_api3_twingle_form_Getsingle(array $params): array {
|
|||
if ($count != 1){
|
||||
return civicrm_api3_create_error("Expected one TwingleForm but found $count");
|
||||
}
|
||||
return civicrm_api3_create_success(
|
||||
$returnValues['values'][$returnValues['id']],
|
||||
$params,
|
||||
'TwingleForm',
|
||||
'Getsingle'
|
||||
);
|
||||
return $returnValues['values'][$returnValues['id']];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue