From 215e74e10550177457633d8a32d951ec95f1e0a1 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Sat, 8 Feb 2014 10:25:15 +0100 Subject: [PATCH] Revert "Bug 11208: If no smsalertnumber is defined, the message is marked as failed" This reverts commit 932ad64f3503d43f696d0b3e534aaf3a48082b5a. Bug 11208 depends on Bug 9016 which is for 3.16 --- C4/Letters.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index c78d01e3d4..712514896e 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -998,12 +998,7 @@ EOS sub _send_message_by_sms { my $message = shift or return; my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} ); - - unless ( $member->{smsalertnumber} ) { - _set_message_status( { message_id => $message->{'message_id'}, - status => 'failed' } ); - return; - } + return unless $member->{'smsalertnumber'}; my $success = C4::SMS->send_sms( { destination => $member->{'smsalertnumber'}, message => $message->{'content'}, -- 2.39.5