Bug 5489: Send hold email to branch email address if it exists instead of koha email address

Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Amit Gupta 2010-12-16 06:47:17 -05:00 committed by Chris Cormack
parent 75762a63e9
commit 21cae2609d

View file

@ -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) {