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

(-)a/C4/HoldsQueue.pm (-6 lines)
Lines 424-434 sub MapItemsToHoldRequests { Link Here
424
    return unless scalar(@$hold_requests) > 0;
424
    return unless scalar(@$hold_requests) > 0;
425
    return unless scalar(@$available_items) > 0;
425
    return unless scalar(@$available_items) > 0;
426
426
427
    # identify item-level requests
428
    my %specific_items_requested = map { $_->{itemnumber} => 1 }
429
                                   grep { defined($_->{itemnumber}) }
430
                                   @$hold_requests;
431
432
    map { $_->{_object} = Koha::Items->find( $_->{itemnumber} ) } @$available_items;
427
    map { $_->{_object} = Koha::Items->find( $_->{itemnumber} ) } @$available_items;
433
    my $libraries = {};
428
    my $libraries = {};
434
    map { $libraries->{$_->id} = $_ } Koha::Libraries->search->as_list;
429
    map { $libraries->{$_->id} = $_ } Koha::Libraries->search->as_list;
435
- 

Return to bug 35727