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

(-)a/reserve/request.pl (-9 / +7 lines)
Lines 568-583 foreach my $biblionumber (@biblionumbers) { Link Here
568
                {
568
                {
569
                    $item->{available} = 1;
569
                    $item->{available} = 1;
570
                    $num_available++;
570
                    $num_available++;
571
                    if($branchitemrule->{'hold_fulfillment_policy'} eq 'any' ) {
571
572
                    if ( $branchitemrule->{'hold_fulfillment_policy'} eq 'any' )
573
                    {
572
                        $item->{any_pickup_location} = 1;
574
                        $item->{any_pickup_location} = 1;
573
                    } else {
575
                    }
574
                        my $arr_locations = Koha::Items->find($itemnumber)
576
                    else {
575
                                    ->pickup_locations( { patron => $patron } )->as_list();
577
                        my @pickup_locations = $item_object->pickup_locations({ patron => $patron });
576
578
577
                        $item->{pickup_locations} = join( ', ',
579
                        $item->{pickup_locations} = join( ', ', map { $_->branchname } @pickup_locations );
578
                            map { $_->unblessed->{branchname} } @$arr_locations);
579
                        $item->{pickup_locations_code} = join( ',',
580
                            map { $_->unblessed->{branchcode} } @$arr_locations);
581
                    }
580
                    }
582
581
583
                    push( @available_itemtypes, $item->{itype} );
582
                    push( @available_itemtypes, $item->{itype} );
584
- 

Return to bug 26999