Bug 24721: Update emailLibrarianWhenHoldIsPlaced to use inbound_email_address

This patch updates the emailLibrarianWhenHoldIsPlaced functionality to
use the inbound_email_address method to obtain the correct email address
for a branch.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-02-25 11:03:58 +00:00
parent 2fcc16b62c
commit 04de40cdcf
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 4 deletions

View File

@ -282,14 +282,14 @@ sub AddReserve {
},
) ) {
my $admin_email_address = $library->branchemail || C4::Context->preference('KohaAdminEmailAddress');
my $branch_email_address = $library->inbound_email_address;
C4::Letters::EnqueueLetter(
{ letter => $letter,
{
letter => $letter,
borrowernumber => $borrowernumber,
message_transport_type => 'email',
from_address => $admin_email_address,
to_address => $admin_email_address,
to_address => $branch_email_address,
}
);
}