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

(-)a/reserve/request.pl (-1 / +6 lines)
Lines 70-75 my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( Link Here
70
my $showallitems = $input->param('showallitems');
70
my $showallitems = $input->param('showallitems');
71
my $pickup = $input->param('pickup') || C4::Context->userenv->{'branch'};
71
my $pickup = $input->param('pickup') || C4::Context->userenv->{'branch'};
72
72
73
my $pickup_branch = Koha::Libraries->find( $pickup );
74
unless ( $pickup_branch->pickup_location ) {
75
    $pickup_branch = Koha::Libraries->search({ pickup_location => 1 })->next;
76
    $pickup = $pickup_branch ? $pickup_branch->id : undef;
77
}
78
73
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
79
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
74
80
75
# Select borrowers infos
81
# Select borrowers infos
76
- 

Return to bug 25877