Bug 36000: Fix CGI::param warning in catalogue search

Speaks for itself.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3cf72dee6b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit a0492b210b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2024-02-06 12:31:28 +00:00 committed by Lucas Gass
parent ef2015bf9b
commit 5cb1f23479

View file

@ -273,7 +273,7 @@ if ( $template_type eq 'advsearch' ) {
@operators = $cgi->multi_param('op');
@indexes = $cgi->multi_param('idx');
$template->param(
sort => $cgi->param('sort_by'),
sort => scalar $cgi->param('sort_by'),
);
# determine what to display next to the search boxes
} elsif ( $cgi->param('edit_filter') ){