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

(-)a/C4/Reserves.pm (-1 / +1 lines)
Lines 388-394 sub CanItemBeReserved { Link Here
388
388
389
    # we retrieve borrowers and items informations #
389
    # we retrieve borrowers and items informations #
390
    # item->{itype} will come for biblioitems if necessery
390
    # item->{itype} will come for biblioitems if necessery
391
    my $biblio     = $item->biblio;
391
    my $biblio   = $item->biblio;
392
    my $borrower = $patron->unblessed;
392
    my $borrower = $patron->unblessed;
393
393
394
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
394
    # If an item is damaged and we don't allow holds on damaged items, we can stop right here
(-)a/Koha/REST/V1/Holds.pm (-3 / +2 lines)
Lines 165-171 sub add { Link Here
165
        ) unless $valid_pickup_location || $can_override;
165
        ) unless $valid_pickup_location || $can_override;
166
166
167
        my $can_place_hold
167
        my $can_place_hold
168
            = $item_id
168
            = $item
169
            ? C4::Reserves::CanItemBeReserved( $patron, $item )
169
            ? C4::Reserves::CanItemBeReserved( $patron, $item )
170
            : C4::Reserves::CanBookBeReserved( $patron_id, $biblio_id );
170
            : C4::Reserves::CanBookBeReserved( $patron_id, $biblio_id );
171
171
Lines 192-198 sub add { Link Here
192
            {
192
            {
193
                branchcode       => $pickup_library_id,
193
                branchcode       => $pickup_library_id,
194
                borrowernumber   => $patron_id,
194
                borrowernumber   => $patron_id,
195
                biblionumber     => $biblio_id,
195
                biblionumber     => $biblio->id,
196
                priority         => $priority,
196
                priority         => $priority,
197
                reservation_date => $hold_date,
197
                reservation_date => $hold_date,
198
                expiration_date  => $expiration_date,
198
                expiration_date  => $expiration_date,
199
- 

Return to bug 29562