From: Kurund Jalmi Date: Wed, 1 May 2013 20:03:10 +0000 (-0700) Subject: more work on CRM-12357 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0f0855d8d3c819e3f4862cf84925474ff685c8f5;p=civicrm-core.git more work on CRM-12357 --- 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"; }