projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(bug #3897) hold policies and circcontrol
[koha.git]
/
opac
/
opac-reserve.pl
diff --git
a/opac/opac-reserve.pl
b/opac/opac-reserve.pl
index
194a28e
..
846a59e
100755
(executable)
--- a/
opac/opac-reserve.pl
+++ b/
opac/opac-reserve.pl
@@
-331,7
+331,10
@@
foreach my $biblioitemnumber (@biblioitemnumbers) {
# If there is no loan, return and transfer, we show a checkbox.
$item->{notforloan} = $item->{notforloan} || 0;
# If there is no loan, return and transfer, we show a checkbox.
$item->{notforloan} = $item->{notforloan} || 0;
- my $branchitemrule = GetBranchItemRule( $borr->{'branchcode'}, $item->{'itemtype'} );
+ my $branch = C4::Circulation::_GetCircControlBranch($item, $borr);
+
+ my $branchitemrule = GetBranchItemRule( $branch, $item->{'itemtype'} );
+
my $policy_holdallowed = 1;
if ( $branchitemrule->{'holdallowed'} == 0 ||
my $policy_holdallowed = 1;
if ( $branchitemrule->{'holdallowed'} == 0 ||