CRM-17631: Order by mailing job ID, not mailing ID
authorJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 7 Jan 2016 08:57:56 +0000 (08:57 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 7 Jan 2016 08:57:56 +0000 (08:57 +0000)
CRM/Mailing/BAO/MailingJob.php

index 61a62b1b0cadb566d375488dbfd622ac4877b754..09de71bcaf362793e83ff5fbebe82deb29b5818e 100644 (file)
@@ -124,7 +124,7 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob {
          AND (j.job_type = 'child')
          AND   {$mailingACL}
       ORDER BY j.scheduled_date ASC,
-        j.mailing_id
+        j.id
       ";
 
       $job->query($query);