Add a code comment

[MAILPOET-3017]
This commit is contained in:
Pavel Dohnal
2021-06-09 09:16:04 +02:00
committed by Veljko V
parent ad330bff64
commit 99963240b5

View File

@ -73,6 +73,8 @@ class TransactionalEmailHooks {
}
$newsletter = $this->newsletterRepository->findOneById($this->settings->get(TransactionalEmails::SETTING_EMAIL_ID));
if (!$newsletter) {
// the newsletter should always be present in the database, if it s not we shouldn't keep using this feature
// we need to recreate the newsletter and turn off the feature
$this->transactionalEmails->init();
$this->settings->set('woocommerce.use_mailpoet_editor', false);
}