From 6606b2e129b48ea3215f04d9ecc8e2a25697b32f Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Tue, 30 Apr 2013 22:03:02 -0700 Subject: [PATCH] CRM-12488 ---------------------------------------- * CRM-12488: CiviMail delivers only 10 emails on the first round http://issues.civicrm.org/jira/browse/CRM-12488 --- CRM/Mailing/BAO/Job.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CRM/Mailing/BAO/Job.php b/CRM/Mailing/BAO/Job.php index 5065a46d18..b871f4b440 100644 --- a/CRM/Mailing/BAO/Job.php +++ b/CRM/Mailing/BAO/Job.php @@ -127,7 +127,9 @@ class CRM_Mailing_BAO_Job extends CRM_Mailing_DAO_Job { $job->status = CRM_Core_DAO::getFieldValue( 'CRM_Mailing_DAO_Job', $job->id, - 'status' + 'status', + 'id', + TRUE ); if ( @@ -325,9 +327,12 @@ class CRM_Mailing_BAO_Job extends CRM_Mailing_DAO_Job { // Re-fetch the job status in case things // changed between the first query and now // to avoid race conditions - $job->status = CRM_Core_DAO::getFieldValue('CRM_Mailing_DAO_Job', + $job->status = CRM_Core_DAO::getFieldValue( + 'CRM_Mailing_DAO_Job', $job->id, - 'status' + 'status', + 'id', + TRUE ); if ($job->status != 'Scheduled') { $lock->release(); -- 2.25.1