Bugzilla – Attachment 19513 Details for
Bug 2394
canreservefromotherbranches preference not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2394: Use syspref canreservefromotherbranches [Follow up]
Bug-2394-Use-syspref-canreservefromotherbranches-F.patch (text/plain), 872 bytes, created by
Julian Maurice
on 2013-07-10 08:24:06 UTC
(
hide
)
Description:
Bug 2394: Use syspref canreservefromotherbranches [Follow up]
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2013-07-10 08:24:06 UTC
Size:
872 bytes
patch
obsolete
>From 63d1bd3fc372180143da7683b728a9b1b22a9c69 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 2394
:
19498
|
19513
|
19544
|
19545
|
19700
|
19701
|
20222
|
20223