Bug 30838: Set to_address to smsalertnumber at send
It may be helpful to know exactly what number was used for the sms alert that was sent. As such, we should ensure it's set at the time of sending. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5e388ed509
commit
e9cdc1da65
|
|
@ -1494,6 +1494,7 @@ sub _is_duplicate {
|
|||
sub _send_message_by_sms {
|
||||
my $message = shift or return;
|
||||
my $patron = Koha::Patrons->find( $message->{borrowernumber} );
|
||||
_update_message_to_address($message->{message_id}, $patron->smsalertnumber) if $patron;
|
||||
|
||||
unless ( $patron and $patron->smsalertnumber ) {
|
||||
_set_message_status( { message_id => $message->{'message_id'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue