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:
parent
2fcc16b62c
commit
04de40cdcf
|
|
@ -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,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue