Bug 18775: Use Koha::Patron->library instead of Koha::Libraries->find
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
a0b6bcfd55
commit
c1485ae8ce
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ sub SendPasswordRecoveryEmail {
|
|||
);
|
||||
|
||||
# define from emails
|
||||
my $library = Koha::Libraries->find( $borrower->branchcode );
|
||||
my $library = $borrower->library;
|
||||
my $kohaEmail = $library->branchemail || C4::Context->preference('KohaAdminEmailAddress'); # send from patron's branch or Koha Admin
|
||||
|
||||
C4::Letters::EnqueueLetter(
|
||||
|
|
Loading…
Reference in a new issue