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:
Jonathan Druart 2017-07-13 14:39:08 -03:00
parent a0b6bcfd55
commit c1485ae8ce

View file

@ -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(