From fabc9b137633bd33b3a049065857c1921cfe06a4 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 18 Nov 2021 13:18:31 +0530 Subject: [PATCH] (dev/core#2962) get contact id for the mailing along with display name and email --- CRM/Mailing/Event/BAO/Queue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/Event/BAO/Queue.php b/CRM/Mailing/Event/BAO/Queue.php index e7a85a37f1..3f27463f47 100644 --- a/CRM/Mailing/Event/BAO/Queue.php +++ b/CRM/Mailing/Event/BAO/Queue.php @@ -285,9 +285,10 @@ SELECT DISTINCT(civicrm_mailing_event_queue.contact_id) as contact_id, if ($dao->fetch()) { $displayName = $dao->display_name; $email = $dao->email; + $contact_id = $dao->contact_id; } - return [$displayName, $email]; + return [$displayName, $email, $contact_id]; } /** -- 2.25.1