Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(dev/mail/5) "New Mailing" - Previews should not schedule real blasts #11904

Merged
merged 1 commit into from
Mar 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ang/crmMailing/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
id: '$value.id'
}
});
delete params.scheduled_date;
delete params.recipients; // the content was merged in
params._skip_evil_bao_auto_recipients_ = 1; // skip recipient rebuild on mail preview
return qApi('Mailing', 'create', params).then(function(result) {
Expand All @@ -300,6 +301,7 @@
'api.email.getvalue': {'return': 'email'}
}
});
delete params.scheduled_date;
delete params.recipients; // the content was merged in
return qApi('Mailing', 'create', params).then(function (recipResult) {
// changes rolled back, so we don't care about updating mailing
Expand Down Expand Up @@ -332,6 +334,7 @@
});
crmMailingCache.put('mailing-' + mailing.id + '-recipient-params', params.recipients);
}
delete params.scheduled_date;
delete params.recipients; // the content was merged in
recipientCount = qApi('Mailing', 'create', params).then(function (recipResult) {
// changes rolled back, so we don't care about updating mailing
Expand Down