From 0fae5ef3ebb711b517dd1298c9020d3806c36f11 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 --- Koha/Patron.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 8835b8fc50..44a5c2ba2d 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1820,8 +1820,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.11.0