From 0f0855d8d3c819e3f4862cf84925474ff685c8f5 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 1 May 2013 13:03:10 -0700 Subject: [PATCH] more work on CRM-12357 --- CRM/Mailing/BAO/Mailing.php | 4 ++-- api/v3/MailingContact.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 6ab9939a58..fe0ea9b130 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -2766,8 +2766,8 @@ AND m.id = %1 foreach ($mailings as $mailingId => $values) { $contactMailings[$mailingId]['subject'] = $values['subject']; $contactMailings[$mailingId]['start_date'] = CRM_Utils_Date::customFormat($values['start_date']); - $contactMailings[$mailingId]['recipients'] = CRM_Utils_System::href(ts('(recipients)'), 'civicrm/mailing/report', - "mid={$values['mailing_id']}&reset=1&cid={$values['creator_id']}&context=mailing"); + $contactMailings[$mailingId]['recipients'] = CRM_Utils_System::href(ts('(recipients)'), 'civicrm/mailing/report/event', + "mid={$values['mailing_id']}&reset=1&cid={$values['creator_id']}&event=delivered&context=mailing"); $contactMailings[$mailingId]['mailing_creator'] = CRM_Utils_System::href( $values['creator_name'], 'civicrm/contact/view', diff --git a/api/v3/MailingContact.php b/api/v3/MailingContact.php index 05c033f5e7..a6fa23d0b8 100644 --- a/api/v3/MailingContact.php +++ b/api/v3/MailingContact.php @@ -144,7 +144,7 @@ GROUP BY m.id } $select = implode(', ', $select); - $orderBy = 'ORDER BY j.start_date'; + $orderBy = 'ORDER BY j.start_date DESC'; if ($sort) { $orderBy = "ORDER BY $sort"; } -- 2.25.1