From 97a1beb4e44f7903c35c0c924728ea59ebb965db Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 7 Apr 2021 15:01:29 +0000 Subject: [PATCH] Bug 15986: (follow-up) Use inbound_email_address for library Signed-off-by: Jonathan Druart --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index c70497ef34..8606ab0bb8 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1837,8 +1837,8 @@ sub queue_notice { return unless $letter_params; return unless exists $params->{message_name} xor $params->{message_transports}; # We only want one of these - my $library = Koha::Libraries->find( $letter_params->{branchcode} )->unblessed; - my $admin_email_address = $library->{branchemail} || C4::Context->preference('KohaAdminEmailAddress'); + my $library = Koha::Libraries->find( $letter_params->{branchcode} ); + my $admin_email_address = $library->inbound_email_address; my @message_transports; my $letter_code; -- 2.39.5