Skip to content

Commit

Permalink
Merge pull request #15779 from seamuslee001/dev_mailing_56
Browse files Browse the repository at this point in the history
dev/mailing#56 dev/mailing#57 Ensure that we don't pass in any namesp…
  • Loading branch information
seamuslee001 authored Nov 8, 2019
2 parents 6d97d88 + c9c06cc commit 3d46dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,9 @@ public static function &report($id, $skipDetails = FALSE, $isSMS = FALSE) {
$report['event_totals']['optout'] += $row['optout'];

foreach (array_keys(CRM_Mailing_BAO_MailingJob::fields()) as $field) {
// Get the field name from the MailingJob fields as that will not have any prefixing.
// dev/mailing#56
$field = CRM_Mailing_BAO_MailingJob::fields()[$field]['name'];
$row[$field] = $mailing->$field;
}

Expand Down

0 comments on commit 3d46dfb

Please sign in to comment.