Bug 15986: (follow-up) Use inbound_email_address for library
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
03b0b98fb2
commit
97a1beb4e4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue