Merge pull request #27557 from eileenmcnaughton/bulk_create
authorTim Otten <totten@civicrm.org>
Thu, 5 Oct 2023 04:41:37 +0000 (21:41 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2023 04:41:37 +0000 (21:41 -0700)
dev/core#4567 Update code creating queue entries to save mailing_id

1  2 
ext/flexmailer/src/Listener/BasicHeaders.php

index 5926ada44c2bc9ba8b211d8bc5deceb0f1a3773f,79baa2891733f9a5c93897050e5e37b71e2976e1..4a448379962509a75ac32b99880193c1d4aea70e
@@@ -37,9 -37,9 +37,9 @@@ class BasicHeaders extends BaseListene
          $e->getJob()->id, $task->getEventQueueId(), $task->getHash(),
          $task->getAddress());
  
 -      $mailParams = array();
 +      $mailParams = [];
        $mailParams['List-Unsubscribe'] = "<mailto:{$verp['unsubscribe']}>";
-       \CRM_Mailing_BAO_Mailing::addMessageIdHeader($mailParams, 'm', $e->getJob()->id, $task->getEventQueueId(), $task->getHash());
+       \CRM_Mailing_BAO_Mailing::addMessageIdHeader($mailParams, 'm', NULL, $task->getEventQueueId(), $task->getHash());
        $mailParams['Precedence'] = 'bulk';
        $mailParams['job_id'] = $e->getJob()->id;