👾 bug fix: TwingleCampaign cannot find parent campaign
This commit is contained in:
parent
a658190a68
commit
cc6777e206
5 changed files with 36 additions and 9 deletions
|
@ -27,7 +27,7 @@ class CRM_TwingleCampaign_BAO_TwingleEvent extends Campaign {
|
|||
$this->id_custom_field = Cache::getInstance()
|
||||
->getCustomFieldMapping()['twingle_event_id'];
|
||||
|
||||
if (isset($this->values['parent_id'])) {
|
||||
if (!isset($this->values['parent_id'])) {
|
||||
try {
|
||||
$this->values['parent_id'] = $this->getParentCampaignId();
|
||||
} catch (CiviCRM_API3_Exception $e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue