From: Nahuel ANGELINETTI Date: Tue, 3 Nov 2009 10:55:53 +0000 (+0100) Subject: [3.0.x](bug #3753) returning a document always needs transfert X-Git-Tag: 3.0.5_rc1~97 X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=77392c752cf0d718e302d6b74380dcc2fbe5871c [3.0.x](bug #3753) returning a document always needs transfert This patch fix a bug in 3.0.4 that do, all returned documents will always need transfers. --- diff --git a/C4/Circulation.pm b/C4/Circulation.pm index aaeb7e56c8..2733f8ce7b 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1508,8 +1508,11 @@ sub AddReturn { #adding message if holdingbranch is non equal a userenv branch to return the document to homebranch #we check, if we don't have reserv or transfert for this document, if not, return it to homebranch . - - if (($doreturn or $messages->{'NotIssued'}) and ($branch ne $iteminformation->{$hbr}) and not $messages->{'WrongTransfer'} and ($validTransfert ne 1) and ($reserveDone ne 1) ){ + if (($doreturn or $messages->{'NotIssued'}) + and ($branch ne $hbr) + and not $messages->{'WrongTransfer'} + and ($validTransfert ne 1) + and ($reserveDone ne 1) ){ if (C4::Context->preference("AutomaticItemReturn") == 1) { ModItemTransfer($iteminformation->{'itemnumber'}, $branch, $iteminformation->{$hbr}); $messages->{'WasTransfered'} = 1;