Bugzilla – Attachment 22751 Details for
Bug 11208
Multi transport types: a sms message without sms number should be marked as failed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11208: If no smsalertnumber is defined, the message is marked as failed
Bug-11208-If-no-smsalertnumber-is-defined-the-mess.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2013-11-06 14:23:17 UTC
(
hide
)
Description:
Bug 11208: If no smsalertnumber is defined, the message is marked as failed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-11-06 14:23:17 UTC
Size:
1.24 KB
patch
obsolete
>From 1fe0202a4353a1d92095c968e5e82134a98bf983 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 6 Nov 2013 14:54:36 +0100 >Subject: [PATCH] Bug 11208: If no smsalertnumber is defined, the message is > marked as failed > >For DUE message (and PREDUE, etc.) there are no check before sending the >message to the message_queue table. > >This check avoids to try to send again and again the same message. Now >it is marked as "failed". >--- > C4/Letters.pm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index 5a8c6cd..faaf582 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -1022,7 +1022,12 @@ EOS > sub _send_message_by_sms { > my $message = shift or return; > my $member = C4::Members::GetMember( 'borrowernumber' => $message->{'borrowernumber'} ); >- return unless $member->{'smsalertnumber'}; >+ >+ unless ( $member->{smsalertnumber} ) { >+ _set_message_status( { message_id => $message->{'message_id'}, >+ status => 'failed' } ); >+ return; >+ } > > my $success = C4::SMS->send_sms( { destination => $member->{'smsalertnumber'}, > message => $message->{'content'}, >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11208
:
22751
|
23836
|
23841