From 63d1bd3fc372180143da7683b728a9b1b22a9c69 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 10 Jul 2013 10:21:05 +0200 Subject: [PATCH] Bug 2394: Use syspref canreservefromotherbranches [Follow up] Check only against item's homebranch --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 806141b..0910a46 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -500,7 +500,7 @@ sub CanItemBeReserved{ if ( C4::Context->preference('IndependantBranches') and !C4::Context->preference('canreservefromotherbranches') ) { - my $itembranch = $item->{holdingbranch} // $item->{homebranch}; + my $itembranch = $item->{homebranch}; if ($itembranch ne $borrower->{branchcode}) { return 0; } -- 1.7.10.4