From c60f67e089a2930d74dd2c38fb32a48a58bbcbb9 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 19 Jun 2026 05:54:37 +0000 Subject: [PATCH] Bug 42803: Fix case where filter is not supplied This change fixes the case where "Any library" and "Any item type" weren't validating. Test plan: 0) Apply the patch 1) Set strict_sql_modes to 0 in koha-conf.xml and restart plack 2) Go to Reports > Items with no checkouts: /cgi-bin/koha/reports/catalogue_out.pl 3) Leave Library set to "Any library" 4) Pick a specific item type that you know has items (e.g. "BK") 5) Note that you get results Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass --- reports/catalogue_out.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/catalogue_out.pl b/reports/catalogue_out.pl index 51a9ad8a45..5e88d053e8 100755 --- a/reports/catalogue_out.pl +++ b/reports/catalogue_out.pl @@ -50,7 +50,7 @@ my @filters_input = $input->multi_param("Filter"); #NOTE: Validate Filter parameter if (@filters_input) { foreach my $filter (@filters_input) { - if ( Koha::Libraries->find($filter) || Koha::ItemTypes->find($filter) ) { + if ( Koha::Libraries->find($filter) || Koha::ItemTypes->find($filter) || !$filter ) { push( @filters, $filter ); } }