Fix bug where queued test emails weren't deleted when their mailing was.
This commit is contained in:
parent
ec1b135dbd
commit
253450928b
1 changed files with 13 additions and 0 deletions
|
|
@ -106,6 +106,11 @@ sub deleteQueuedEmails {
|
|||
while ( my $email = $it->() ) {
|
||||
$email->delete;
|
||||
}
|
||||
|
||||
$it = $self->getQueuedTestEmailIterator;
|
||||
while ( my $email = $it->() ) {
|
||||
$email->delete;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
@ -144,6 +149,14 @@ sub getQueuedEmailIterator {
|
|||
return WebGUI::Mailing::Email->getQueued( $session, $self->getId );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub getQueuedTestEmailIterator {
|
||||
my $self = shift;
|
||||
my $session = $self->session;
|
||||
|
||||
return WebGUI::Mailing::Email->getQueuedTestEmails( $session, $self->getId );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub getNextInSendQueue {
|
||||
my $class = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue