From f0bf2fea25e3a296654036c2f7f71d07d372043c Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 9 Jan 2008 13:36:40 -0600 Subject: [PATCH] Fix for bug 1400, some variables not being passed to the branch transfers Signed-off-by: Joshua Ferraro --- circ/branchtransfers.pl | 7 +++++++ .../prog/en/modules/circ/branchtransfers.tmpl | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl index f6d5bb71ac..36f4da3e95 100755 --- a/circ/branchtransfers.pl +++ b/circ/branchtransfers.pl @@ -31,6 +31,7 @@ use C4::Items; use C4::Auth qw/:DEFAULT get_session/; use C4::Branch; # GetBranches use C4::Koha; +use C4::Members; ############################################### # Getting state @@ -209,6 +210,12 @@ foreach my $code ( keys %$messages ) { if ( $code eq 'WasReturned' ) { $err{errwasreturned} = 1; + $err{borrowernumber}=$messages->{'WasReturned'}; + my $borrower = GetMember($messages->{'WasReturned'},'borrowernumber'); + $err{title}=$borrower->{'title'}; + $err{firstname}=$borrower->{'firstname'}; + $err{surname}=$borrower->{'surname'}; + $err{cardnumber} =$borrower->{'cardnumber'}; } push( @errmsgloop, \%err ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl index 89174e7640..594477b346 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl @@ -142,8 +142,9 @@
  • Item is already at destination library.
  • -
  • Item was on loan to "> - and has been returned.
  • +
  • Item was on loan to "> + +() and has been returned.
  • @@ -178,4 +179,4 @@ - \ No newline at end of file + -- 2.39.5