[Koha-bugs] [Bug 6151] IndependantBranches and HomeOrHoldingBranchReturn can prevent items from being checked in
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Jun 26 20:29:43 CEST 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6151
--- Comment #1 from D Ruth Bavousett <ruth at bywatersolutions.com> 2011-06-26 18:29:43 UTC ---
Here's a fix that is working for two sites that are on IndependantBranches with
AutomaticItemReturn:
In C4/Circulation.pm:
# FIXME: make this comment intelligible.
#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 .
+ $hbr = $item->{homebranch}; # since that's what all the following code
does
if (($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne
$hbr) and not $messages->{'WrongTransfer'}){
if ( C4::Context->preference("AutomaticItemReturn" ) or
(C4::Context->preference("UseBranchTransferLimits") and
! IsBranchTransferAllowed($branch, $hbr,
$item->{C4::Context->preference("BranchTransferLimitsType")} )
)) {
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list