bug 5497: make all library fields available to circ receipt/slips
authorGalen Charlton <gmcharlt@gmail.com>
Tue, 4 Jan 2011 19:38:44 +0000 (14:38 -0500)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 4 Jan 2011 20:15:16 +0000 (15:15 -0500)
This allows the receipt template to be more readily customized
to include the library's address, phone number, email address, etc.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Nicole Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 4daef50c7a554e6ef2b83e29ac877a70366bddfa)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
members/moremember.pl

index beec293..0be125c 100755 (executable)
@@ -221,8 +221,7 @@ if ( C4::Context->preference("IndependantBranches") ) {
     $samebranch = 1;
 }
 my $branchdetail = GetBranchDetail( $data->{'branchcode'});
-$data->{'branchname'} = $branchdetail->{branchname};
-
+@{$data}{keys %$branchdetail} = values %$branchdetail; # merge in all branch columns
 
 my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber );
 my $lib1 = &GetSortDetails( "Bsort1", $data->{'sort1'} );