do not overwrite TwingleCampaign values on creation

This commit is contained in:
Marc Michalsky forumZFD 2021-02-11 18:41:33 +01:00
parent 154f9d2d34
commit fd64401987
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -67,9 +67,8 @@ class CRM_TwingleCampaign_BAO_TwingleCampaign {
$result = civicrm_api3('Campaign', 'create', $values);
if ($result['is_error'] != 1) {
$this->id = $result['id'];
$this->values = $result['values'];
if (!array_key_exists('is_error', $result) || $result['is_error'] != 0) {
throw new CiviCRM_API3_Exception('TwingleCampaign creation failed');
}
}