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

(-)a/C4/Reserves.pm (-5 / +6 lines)
Lines 2054-2063 sub _koha_notify_reserve { Link Here
2054
    };
2054
    };
2055
2055
2056
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
2056
    while ( my ( $mtt, $letter_code ) = each %{ $messagingprefs->{transports} } ) {
2057
        if ( ($mtt eq 'email' and not $to_address) or ($mtt eq 'sms' and not $borrower->{smsalertnumber}) ) {
2057
        next if (
2058
            # email or sms is requested but not exist
2058
               ( $mtt eq 'email' and not $to_address ) # No email address
2059
            next;
2059
            or ( $mtt eq 'sms'   and not $borrower->{smsalertnumber} ) # No SMS number
2060
        }
2060
            or ( $mtt eq 'phone' and C4::Context->preference('TalkingTechItivaPhoneNotification') ) # Notice is handled by TalkingTech_itiva_outbound.pl
2061
        );
2062
2061
        &$send_notification($mtt, $letter_code);
2063
        &$send_notification($mtt, $letter_code);
2062
        $notification_sent++;
2064
        $notification_sent++;
2063
    }
2065
    }
2064
- 

Return to bug 13152