From 4d20926ec9adf0c0541b310d7d1132f2f34c77fc Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 25 Jul 2017 17:47:33 +0530 Subject: [PATCH] CRM-20964: Include queue id while retrieving rows from Event Queue --- CRM/Mailing/Event/BAO/Queue.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Mailing/Event/BAO/Queue.php b/CRM/Mailing/Event/BAO/Queue.php index 3060d323a9db..225961686e14 100644 --- a/CRM/Mailing/Event/BAO/Queue.php +++ b/CRM/Mailing/Event/BAO/Queue.php @@ -206,7 +206,8 @@ public static function &getRows( } $query = " - SELECT $contact.display_name as display_name, + SELECT $queue.id as queue_id, + $contact.display_name as display_name, $contact.id as contact_id, $email.email as email, $job.start_date as date @@ -241,7 +242,7 @@ public static function &getRows( $url = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$dao->contact_id}" ); - $results[] = array( + $results[$dao->queue_id] = array( 'name' => "{$dao->display_name}", 'email' => $dao->email, 'date' => CRM_Utils_Date::customFormat($dao->date),