Bug 4461: Use get_effective_email from bug 22823

Use the get_effective_email from Koha::Library to get an appropriate
inbound address for the branch as aposed to using branchemail directly.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: David Nind <david@davidnind.com>
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-03-02 15:18:33 +00:00
parent fc8f2d261b
commit 282b85ef69
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -110,7 +110,7 @@ if ( $op eq 'addreport' ) {
letter => $letter,
borrowernumber => $borrowernumber,
message_transport_type => $transport,
to_address => $library->branchemail,
to_address => $library->get_effective_email,
reply_address => $reply_address,
});
}