Skip to content

Commit

Permalink
Merge pull request #49 from TheDMSGroup/ENG-207-non-realitime-campaig…
Browse files Browse the repository at this point in the history
…n-attach

[ENG-207] Set all ingested contacts as manually added to campaigns.
  • Loading branch information
heathdutton authored Apr 10, 2018
2 parents c9305b5 + d865e6c commit bf9a5f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,8 @@ private function addContactToCampaign()
{
if ($this->contact->getId()) {
// Add the contact directly to the campaign without duplicate checking.
$this->addContactsToCampaign($this->campaign, [$this->contact], false);
// Passing manuallyAdded as true is important, prevents cron from immediately removing the contacts.
$this->addContactsToCampaign($this->campaign, [$this->contact], true);
}

return $this;
Expand Down

0 comments on commit bf9a5f6

Please sign in to comment.