- Deletes post notification history record when no posts are found and
when sending queue record is deleted - Reverts back changes to the model's delete() method - Updates unit tests
This commit is contained in:
@@ -46,6 +46,8 @@ class Newsletter {
|
||||
if($newsletter->type === NewsletterModel::TYPE_NOTIFICATION_HISTORY &&
|
||||
!$newsletter_contains_posts
|
||||
) {
|
||||
// delete notification history record since it will never be sent
|
||||
$newsletter->delete();
|
||||
return false;
|
||||
}
|
||||
// extract and save newsletter posts
|
||||
|
Reference in New Issue
Block a user