fix bug: infinite loop on TwingleCampaign->create()

This commit is contained in:
Marc Michalsky forumZFD 2021-02-08 15:45:04 +01:00
parent f17a899b79
commit 75bbfcb12c
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -61,7 +61,7 @@ function civicrm_api3_twingle_campaign_Create(array $params): array {
// Try to create the TwingleCampaign
try {
$campaign->create();
$campaign->create(TRUE);
return civicrm_api3_create_success(
$campaign->getResponse('TwingleCampaign created'),
$params,