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:
db05550
)
CRM-20309 Schedule mailing jobs at increasing times
author
Romain Thouvenin
<romain@wemove.eu>
Mon, 24 Apr 2017 13:05:27 +0000
(15:05 +0200)
committer
Romain Thouvenin
<romain@wemove.eu>
Mon, 24 Apr 2017 13:35:11 +0000
(15:35 +0200)
CRM/Mailing/BAO/MailingJob.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Mailing/BAO/MailingJob.php
b/CRM/Mailing/BAO/MailingJob.php
index 49d3fc5989d6a50594ee87023b30ead3f879636d..0aedfdf0b15797a57228352d4661087f3722ee08 100644
(file)
--- a/
CRM/Mailing/BAO/MailingJob.php
+++ b/
CRM/Mailing/BAO/MailingJob.php
@@
-431,7
+431,9
@@
VALUES (%1, %2, %3, %4, %5, %6, %7)
}
else {
// Creating 'child jobs'
- for ($i = 0; $i < $recipient_count; $i = $i + $offset) {
+ $scheduled_unixtime = strtotime($this->scheduled_date);
+ for ($i = 0, $s = 0; $i < $recipient_count; $i = $i + $offset, $s++) {
+ $params[2][0] = date('Y-m-d H:i:s', $scheduled_unixtime + $s);
$params[6][0] = $i;
$params[7][0] = $offset;
CRM_Core_DAO::executeQuery($sql, $params);