----------------------------------------
* CRM-12488: CiviMail delivers only 10 emails on the first round
http://issues.civicrm.org/jira/browse/CRM-12488
$job->status = CRM_Core_DAO::getFieldValue(
'CRM_Mailing_DAO_Job',
$job->id,
- 'status'
+ 'status',
+ 'id',
+ TRUE
);
if (
// 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();