(bug #3897) hold policies and circcontrol
This patch fix hold policies way to do, make it using circcontrol syspref to know the branch the rule must be based.
This commit is contained in:
parent
a05c092e99
commit
c0edb3adef
|
|
@ -426,7 +426,9 @@ foreach my $biblioNum (@biblionumbers) {
|
|||
# If there is no loan, return and transfer, we show a checkbox.
|
||||
$itemLoopIter->{notforloan} = $itemLoopIter->{notforloan} || 0;
|
||||
|
||||
my $branchitemrule = GetBranchItemRule( $borr->{'branchcode'}, $itemInfo->{'itype'} );
|
||||
my $branch = C4::Circulation::_GetCircControlBranch($itemLoopIter, $borr);
|
||||
|
||||
my $branchitemrule = GetBranchItemRule( $branch, $itemInfo->{'itype'} );
|
||||
my $policy_holdallowed = 1;
|
||||
|
||||
if ( $branchitemrule->{'holdallowed'} == 0 ||
|
||||
|
|
|
|||
|
|
@ -397,7 +397,9 @@ foreach my $biblionumber (@biblionumbers) {
|
|||
}
|
||||
}
|
||||
|
||||
my $branchitemrule = GetBranchItemRule( $item->{'homebranch'}, $item->{'itype'} );
|
||||
my $branch = C4::Circulation::_GetCircControlBranch($item, $borrowerinfo);
|
||||
|
||||
my $branchitemrule = GetBranchItemRule( $branch, $item->{'itype'} );
|
||||
my $policy_holdallowed = 1;
|
||||
|
||||
$item->{'holdallowed'} = $branchitemrule->{'holdallowed'};
|
||||
|
|
|
|||
Loading…
Reference in New Issue