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

(-)a/Koha/REST/V1/Holds.pm (-2 / +1 lines)
Lines 417-423 sub pickup_locations { Link Here
417
        my @pickup_locations =
417
        my @pickup_locations =
418
            $hold->itemnumber
418
            $hold->itemnumber
419
          ? @{ $hold->item->pickup_locations( { patron => $hold->patron } )->as_list() }
419
          ? @{ $hold->item->pickup_locations( { patron => $hold->patron } )->as_list() }
420
          : @{ $hold->biblio->pickup_locations( { patron => $hold->patron } ) };
420
          : @{ $hold->biblio->pickup_locations( { patron => $hold->patron } )->as_list() };
421
421
422
        @pickup_locations = map { $_->to_api } @pickup_locations;
422
        @pickup_locations = map { $_->to_api } @pickup_locations;
423
423
424
- 

Return to bug 27177