}
}
+ // ensure these are set so that they get assigned to the template
+ $values['mailingId'] = $values['mailingId'] ?? NULL;
+ $values['campaign'] = $values['campaign'] ?? NULL;
+ $values['engagement_level'] = $values['engagement_level'] ?? NULL;
+
// Get the campaign.
if ($campaignId = CRM_Utils_Array::value('campaign_id', $defaults)) {
$campaigns = CRM_Campaign_BAO_Campaign::getCampaigns($campaignId);
'modified_date' => $activityMoreInfo['modified_date'],
'activity_modified_date' => $activityMoreInfo['modified_date'],
'attachment' => NULL,
+ 'mailingId' => NULL,
+ 'campaign' => NULL,
+ 'engagement_level' => NULL,
];
$this->assertEquals($expected, $templateVar);