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

(-)a/C4/Letters.pm (+5 lines)
Lines 925-930 sub EnqueueLetter { Link Here
925
#   return unless exists $params->{'borrowernumber'};
925
#   return unless exists $params->{'borrowernumber'};
926
    return unless exists $params->{'message_transport_type'};
926
    return unless exists $params->{'message_transport_type'};
927
927
928
    if( !$params->{from_address} ) {
929
        warn 'EnqueueLetter: Sending a message without from_address not allowed.';
930
        return; # no exception: context contains various silent returns
931
    }
932
928
    my $content = $params->{letter}->{content};
933
    my $content = $params->{letter}->{content};
929
    $content =~ s/\s+//g if(defined $content);
934
    $content =~ s/\s+//g if(defined $content);
930
    if ( not defined $content or $content eq '' ) {
935
    if ( not defined $content or $content eq '' ) {
(-)a/Koha/Patron.pm (-1 / +5 lines)
Lines 1875-1880 sub queue_notice { Link Here
1875
1875
1876
    my $library = Koha::Libraries->find( $letter_params->{branchcode} );
1876
    my $library = Koha::Libraries->find( $letter_params->{branchcode} );
1877
    my $from_email_address = $library->from_email_address;
1877
    my $from_email_address = $library->from_email_address;
1878
    if( !$from_email_address ) {
1879
        # No exception since we 'silently' return here for various reasons..
1880
        warn 'queue_notice: Found no branch email address; KohaAdminEmailAddress is empty too.';
1881
        return;
1882
    }
1878
1883
1879
    my @message_transports;
1884
    my @message_transports;
1880
    my $letter_code;
1885
    my $letter_code;
1881
- 

Return to bug 28581