From 21cae2609d12075f685f51b66a5821eb41d30c97 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Thu, 16 Dec 2010 06:47:17 -0500 Subject: [PATCH] Bug 5489: Send hold email to branch email address if it exists instead of koha email address Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- C4/Reserves.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index e15d32f5a0..2dd2688fcd 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -194,7 +194,9 @@ sub AddReserve { 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'); + my $branchcode = $borrower->{branchcode}; + my $branch_details = C4::Branch::GetBranchDetail($branchcode); + my $admin_email_address =$branch_details->{'branchemail'} || C4::Context->preference('KohaAdminEmailAddress'); my %keys = (%$borrower, %$biblio); foreach my $key (keys %keys) { -- 2.39.5