From: Donald A. Lobo Date: Wed, 1 May 2013 05:03:02 +0000 (-0700) Subject: CRM-12488 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6606b2e129b48ea3215f04d9ecc8e2a25697b32f;p=civicrm-core.git CRM-12488 ---------------------------------------- * CRM-12488: CiviMail delivers only 10 emails on the first round http://issues.civicrm.org/jira/browse/CRM-12488 --- 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();