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

(-)a/reserve/placerequest.pl (-2 / +6 lines)
Lines 73-78 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
73
73
74
        my $can_override = C4::Context->preference('AllowHoldPolicyOverride');
74
        my $can_override = C4::Context->preference('AllowHoldPolicyOverride');
75
        if ( @checkitems ) {
75
        if ( @checkitems ) {
76
77
            my $hold_priority = $rank[0];
78
76
            for ( my $i = 0 ; $i < scalar @checkitems ; $i++ ) {
79
            for ( my $i = 0 ; $i < scalar @checkitems ; $i++ ) {
77
                my $checkitem = $checkitems[$i];
80
                my $checkitem = $checkitems[$i];
78
                if ( my $item_pickup_location = $input->param("item_pickup_$checkitem") ) {
81
                if ( my $item_pickup_location = $input->param("item_pickup_$checkitem") ) {
Lines 93-99 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
93
                                branchcode       => $item_pickup_location,
96
                                branchcode       => $item_pickup_location,
94
                                borrowernumber   => $patron->borrowernumber,
97
                                borrowernumber   => $patron->borrowernumber,
95
                                biblionumber     => $biblionumber,
98
                                biblionumber     => $biblionumber,
96
                                priority         => $rank[$i],
99
                                priority         => $hold_priority,
97
                                reservation_date => $startdate,
100
                                reservation_date => $startdate,
98
                                expiration_date  => $expirationdate,
101
                                expiration_date  => $expirationdate,
99
                                notes            => $notes,
102
                                notes            => $notes,
Lines 105-110 if ( $op eq 'cud-placerequest' && $patron ) { Link Here
105
                            }
108
                            }
106
                        );
109
                        );
107
110
111
                        $hold_priority++;
112
108
                    } else {
113
                    } else {
109
                        $failed_holds{$can_item_be_reserved} = 1;
114
                        $failed_holds{$can_item_be_reserved} = 1;
110
                    }
115
                    }
111
- 

Return to bug 37587