- 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:
@@ -52,13 +52,6 @@ class SendingQueue extends Model {
|
||||
return $this;
|
||||
}
|
||||
|
||||
function delete() {
|
||||
if($parent_newsletter = $this->newsletter()->findOne()) {
|
||||
$parent_newsletter->delete();
|
||||
};
|
||||
return parent::delete();
|
||||
}
|
||||
|
||||
function getSubscribers() {
|
||||
if(!is_serialized($this->subscribers)) {
|
||||
return $this->subscribers;
|
||||
|
Reference in New Issue
Block a user