View | Details | Raw Unified | Return to bug 33074
Collapse All | Expand All

(-)a/opac/opac-reserve.pl (-3 / +3 lines)
Lines 230-237 if ( $query->param('place_reserve') ) { Link Here
230
        my $item = $itemNum ? Koha::Items->find( $itemNum ) : undef;
230
        my $item = $itemNum ? Koha::Items->find( $itemNum ) : undef;
231
        # When choosing a specific item, the default pickup library should be dictated by the default hold policy
231
        # When choosing a specific item, the default pickup library should be dictated by the default hold policy
232
        if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $item ) {
232
        if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $item ) {
233
            my $type = $item->effective_itemtype;
233
            my $type                    = $item->effective_itemtype;
234
            my $rule = GetBranchItemRule( $patron->branchcode, $type );
234
            my $reserves_control_branch = Koha::Policy::Holds->holds_control_library( $item, $patron );
235
            my $rule                    = GetBranchItemRule( $reserves_control_branch, $type );
235
236
236
            if ( $rule->{hold_fulfillment_policy} eq 'any' || $rule->{hold_fulfillment_policy} eq 'patrongroup' ) {
237
            if ( $rule->{hold_fulfillment_policy} eq 'any' || $rule->{hold_fulfillment_policy} eq 'patrongroup' ) {
237
                $branch = $patron->branchcode;
238
                $branch = $patron->branchcode;
238
- 

Return to bug 33074