X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Koha%2FPatron.pm;h=a8379f6228143ede9d4a0f99ad590bb50b4e642c;hb=a7c202de1c97438a32b86a309a449e7c427f77d3;hp=dc87674f4d5d04cb2226245837ead4a11b6fc198;hpb=7293802becd3741a1f042f233ff614792c9e480f;p=koha-ffzg.git diff --git a/Koha/Patron.pm b/Koha/Patron.pm index dc87674f4d..a8379f6228 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1874,7 +1874,7 @@ sub queue_notice { return unless exists $params->{message_name} xor $params->{message_transports}; # We only want one of these my $library = Koha::Libraries->find( $letter_params->{branchcode} ); - my $admin_email_address = $library->inbound_email_address; + my $from_email_address = $library->from_email_address; my @message_transports; my $letter_code; @@ -1909,7 +1909,7 @@ sub queue_notice { C4::Letters::EnqueueLetter({ letter => $letter, borrowernumber => $self->borrowernumber, - from_address => $admin_email_address, + from_address => $from_email_address, message_transport_type => $mtt }) unless $test_mode; push @{$return{sent}}, $mtt;