more work on CRM-12357
authorKurund Jalmi <kurund@civicrm.org>
Wed, 1 May 2013 20:03:10 +0000 (13:03 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Wed, 1 May 2013 20:03:10 +0000 (13:03 -0700)
CRM/Mailing/BAO/Mailing.php
api/v3/MailingContact.php

index 6ab9939a58e711da16341ae768b69f4a3308b74d..fe0ea9b130153d35fd996aae8fcbb736cd4c5d53 100644 (file)
@@ -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',
index 05c033f5e79d0f874c776b2a4f8a5ecb29b929cf..a6fa23d0b824bbbe4c7e4d3dcea0ce773dcdbbf7 100644 (file)
@@ -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";
     }