Fixes newsletter body being incorrectly saved

This commit is contained in:
Vlad
2018-01-08 22:48:57 -05:00
committed by pavel-mailpoet
parent 4018ca4a65
commit a45a7a7616
2 changed files with 22 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class SendingQueue extends Model {
}
function save() {
$this->newsletter_rendered_body = $this->getNewsletterRenderedBody();
if(!is_serialized($this->subscribers) && !is_null($this->subscribers)) {
$this->set('subscribers', serialize($this->subscribers));
}