From c12ff97647898ddb64285573cbf32d55becf7d29 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 19 Feb 2010 05:55:05 -0500 Subject: [PATCH] bug 3242 follow-up: fix crash when emailLibrarianWhenHoldIsPlaced is ON Signed-off-by: Galen Charlton --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index e09fb63300..b10d6b4b18 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -187,7 +187,7 @@ sub AddReserve { # Send e-mail to librarian if syspref is active if(C4::Context->preference("emailLibrarianWhenHoldIsPlaced")){ - my $borrower = GetMemberDetails($borrowernumber); + my $borrower = C4::Members::GetMember(borrowernumber => $borrowernumber); my $biblio = GetBiblioData($biblionumber); my $letter = C4::Letters::getletter( 'reserves', 'HOLDPLACED'); my $admin_email_address = C4::Context->preference('KohaAdminEmailAddress'); -- 2.39.5