From a29d1db971450322f99f68af26295d097f44a0b9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 27 Jan 2020 17:43:17 +0100 Subject: [PATCH] Bug 24361: Silent t/db_dependent/Items.t its output is displaying tons of Use of uninitialized value $field in regexp compilation at /kohadevbox/koha/C4/Items.pm line 2106. Signed-off-by: Martin Renvoize --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 498c3eb43c..925afc2397 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2102,7 +2102,7 @@ sub _SearchItems_build_where_fragment { push @columns, Koha::Database->new()->schema()->resultset('Biblio')->result_source->columns; push @columns, Koha::Database->new()->schema()->resultset('Biblioitem')->result_source->columns; my @operators = qw(= != > < >= <= like); - my $field = $filter->{field}; + my $field = $filter->{field} // q{}; if ( (0 < grep /^$field$/, @columns) or (substr($field, 0, 5) eq 'marc:') ) { my $op = $filter->{operator}; my $query = $filter->{query}; -- 2.39.5