View | Details | Raw Unified | Return to bug 13152
Collapse All | Expand All

(-)a/C4/Reserves.pm (-3 / +6 lines)
Lines 1964-1971 sub _koha_notify_reserve { Link Here
1964
    };
1964
    };
1965
1965
1966
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
1966
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
1967
        if ( ($mtt eq 'email' and not $to_address) or ($mtt eq 'sms' and not $borrower->{smsalertnumber}) ) {
1967
        if (
1968
            # email or sms is requested but not exist
1968
               ( $mtt eq 'email' and not $to_address ) # No email address
1969
            or ( $mtt eq 'sms'   and not $borrower->{smsalertnumber} ) # No SMS number
1970
            or ( $mtt eq 'phone' and C4::Context->preference('TalkingTechItivaPhoneNotification') ) # Notice is handled by TalkingTech_itiva_outbound.pl
1971
          )
1972
        {
1969
            next;
1973
            next;
1970
        }
1974
        }
1971
        &$send_notification($mtt, $letter_code);
1975
        &$send_notification($mtt, $letter_code);
1972
- 

Return to bug 13152