Bug 28782: (follow-up) Pass real array to query_form()
It excepts to receive a real array and not a list, in order to be able to generate the query parameters. Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
52b5a22edf
commit
4f8a7fb909
|
|
@ -106,6 +106,6 @@ if ( $from eq 'borrower'){
|
|||
print $query->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrower[0]");
|
||||
} else {
|
||||
my $url = URI->new("/cgi-bin/koha/reserve/request.pl");
|
||||
$url->query_form( biblionumber => @biblionumber);
|
||||
$url->query_form( biblionumber => [@biblionumber]);
|
||||
print $query->redirect($url);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ if ( $type eq 'str8' && $patron ) {
|
|||
push @biblionumbers, @bad_bibs;
|
||||
}
|
||||
my $redirect_url = URI->new("request.pl");
|
||||
$redirect_url->query_form( biblionumber => @biblionumbers);
|
||||
$redirect_url->query_form( biblionumber => [@biblionumbers]);
|
||||
print $input->redirect($redirect_url);
|
||||
}
|
||||
elsif ( $borrowernumber eq '' ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue