From 5cb1f23479e82bd840b25336e7894e9f8c228da2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 6 Feb 2024 12:31:28 +0000 Subject: [PATCH] Bug 36000: Fix CGI::param warning in catalogue search Speaks for itself. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer (cherry picked from commit 3cf72dee6b52bbfadbb46b40d6d8fec5f3e2bf48) Signed-off-by: Fridolin Somers (cherry picked from commit a0492b210b38fb9e946e14ada50cc368d54db4d2) Signed-off-by: Lucas Gass --- catalogue/search.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 5954bf2d67..b5ae390657 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -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') ){ -- 2.39.5