Lines 361-372
sub set_waiting {
Link Here
|
361 |
my $messaging_preferences = C4::Members::Messaging::GetMessagingPreferences( |
361 |
my $messaging_preferences = C4::Members::Messaging::GetMessagingPreferences( |
362 |
{ borrowernumber => $self->patron_id, message_name => 'Recall_Waiting' } ); |
362 |
{ borrowernumber => $self->patron_id, message_name => 'Recall_Waiting' } ); |
363 |
while ( my ( $transport, $letter_code ) = each %{ $messaging_preferences->{transports} } ) { |
363 |
while ( my ( $transport, $letter_code ) = each %{ $messaging_preferences->{transports} } ) { |
364 |
if ( $transport eq 'email' ) { |
364 |
C4::Message->enqueue( $letter, $self->patron, $transport ); |
365 |
C4::Message->enqueue( $letter, $self->patron, 'email' ); |
|
|
366 |
} |
367 |
if ( $transport eq 'sms' ) { |
368 |
C4::Message->enqueue( $letter, $self->patron, 'sms' ); |
369 |
} |
370 |
} |
365 |
} |
371 |
|
366 |
|
372 |
return $self; |
367 |
return $self; |