From b5a56749cbbbc229674c11793bb644325864ad6b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Jul 2017 14:39:08 -0300 Subject: [PATCH] Bug 18775: Use Koha::Patron->library instead of Koha::Libraries->find Signed-off-by: Jonathan Druart --- Koha/Patron/Password/Recovery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron/Password/Recovery.pm b/Koha/Patron/Password/Recovery.pm index a7002336ae..5a352fb25c 100644 --- a/Koha/Patron/Password/Recovery.pm +++ b/Koha/Patron/Password/Recovery.pm @@ -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( -- 2.11.0