allow sending of post notifications with either old or new ALC blocks

This commit is contained in:
Amine Ben hammou
2018-05-30 09:31:04 +00:00
parent 6914a9c224
commit 8793d904fb

View File

@@ -275,7 +275,8 @@ define([
} }
if ((App.getNewsletter().get('type') === 'notification') && if ((App.getNewsletter().get('type') === 'notification') &&
contents.indexOf('"type":"automatedLatestContent"') < 0 contents.indexOf('"type":"automatedLatestContent"') < 0 &&
contents.indexOf('"type":"automatedLatestContentLayout"') < 0
) { ) {
this.showValidationError(MailPoet.I18n.t('automatedLatestContentMissing')); this.showValidationError(MailPoet.I18n.t('automatedLatestContentMissing'));
return; return;