fix getsingle apis
return an array that contains the values instead of an array that contains another array
This commit is contained in:
parent
6fd9521f08
commit
2533c97f4c
4 changed files with 27 additions and 16 deletions
|
@ -65,5 +65,10 @@ 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'], $params, 'TwingleForm', 'Getsingle');
|
||||
return civicrm_api3_create_success(
|
||||
$returnValues['values'][$returnValues['id']],
|
||||
$params,
|
||||
'TwingleForm',
|
||||
'Getsingle'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue