✅️ 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
|
@ -79,7 +79,7 @@ class CRM_TwingleCampaign_BAO_TwingleCampaign {
|
|||
*/
|
||||
public function fetch() {
|
||||
$this->values = civicrm_api3('TwingleCampaign', 'getsingle',
|
||||
['id' => $this->id])['values'];
|
||||
['id' => $this->id]);
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,7 +105,7 @@ class CRM_TwingleCampaign_BAO_TwingleCampaign {
|
|||
'TwingleCampaign',
|
||||
'getsingle',
|
||||
['id' => $this->id]
|
||||
)['values']['parent_id'];
|
||||
)['parent_id'];
|
||||
|
||||
$parent_campaign_type_id = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue