[Koha-patches] [PATCH] [3.0.x] (bug #4939) automaticitemtransfert break holdingbranch

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Mon Jul 5 11:02:24 CEST 2010


This patch fix the call to moditemtransfert in the case of automaticitemtransfert set to ON.
---
 C4/Circulation.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 5fcd294..0766efd 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -1429,7 +1429,6 @@ sub AddReturn {
         $borrower = C4::Members::GetMemberDetails( $iteminformation->{borrowernumber}, 0 );
     
     # case of a return of document (deal with issues and holdingbranch)
-            
         if ($doreturn) {
 			my $circControlBranch;
 			if($dropbox) {
@@ -1517,7 +1516,7 @@ sub AddReturn {
             and ($validTransfert ne 1) 
             and ($reserveDone ne 1) ){
 			if (C4::Context->preference("AutomaticItemReturn") == 1) {
-				ModItemTransfer($iteminformation->{'itemnumber'}, $branch, $iteminformation->{$hbr});
+				ModItemTransfer($iteminformation->{'itemnumber'}, $branch, $hbr);
 				$messages->{'WasTransfered'} = 1;
 			}
 			else {
-- 
1.7.0.4



More information about the Koha-patches mailing list