projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b09a4
)
Dev/Core 25 Wrap the mailing split_job function in a transaction to ensure that there...
author
Seamus Lee
<seamuslee001@gmail.com>
Tue, 20 Mar 2018 03:02:08 +0000
(14:02 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Thu, 22 Mar 2018 21:06:08 +0000
(08:06 +1100)
Include the split_jobs in the transaction used to update the parent job
CRM/Mailing/BAO/MailingJob.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/BAO/MailingJob.php
b/CRM/Mailing/BAO/MailingJob.php
index 0d49819d64081e86dbc641a570675dc0f3c1a3de..d86815a7a4a4d3a68adffa2d4005eadd9a6cb2f8 100644
(file)
--- a/
CRM/Mailing/BAO/MailingJob.php
+++ b/
CRM/Mailing/BAO/MailingJob.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);
}
}
+
}
/**