X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FBAO%2FMailingJob.php;h=d86815a7a4a4d3a68adffa2d4005eadd9a6cb2f8;hb=f490722ae33e0afdac7cfee6eefdeb6cf876b883;hp=3fe82a511b76a2ec455f10718f572eeb4671846e;hpb=62d684a73cf9d8f969f271079c4edf8751f2afa0;p=civicrm-core.git diff --git a/CRM/Mailing/BAO/MailingJob.php b/CRM/Mailing/BAO/MailingJob.php index 3fe82a511b..d86815a7a4 100644 --- a/CRM/Mailing/BAO/MailingJob.php +++ b/CRM/Mailing/BAO/MailingJob.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2018 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2017 + * @copyright CiviCRM LLC (c) 2004-2018 */ require_once 'Mail.php'; @@ -375,11 +375,11 @@ class CRM_Mailing_BAO_MailingJob extends CRM_Mailing_DAO_MailingJob { continue; } + $transaction = new CRM_Core_Transaction(); + $job->split_job($offset); // update the status of the parent job - $transaction = new CRM_Core_Transaction(); - $saveJob = new CRM_Mailing_DAO_MailingJob(); $saveJob->id = $job->id; $saveJob->start_date = date('YmdHis'); @@ -437,6 +437,7 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) CRM_Core_DAO::executeQuery($sql, $params); } } + } /**