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

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

Return to bug 26988