From f2b108638732f9ff42456a461af0e9f30ed2b679 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Feb 2020 10:29:56 +0100 Subject: [PATCH] Bug 24361: Silent Items/GetItemsForInventory.t It was displaying hundreds of: Use of uninitialized value in concatenation (.) or string at /kohadevbox/koha/C4/Items.pm line 862. Signed-off-by: Martin Renvoize --- C4/Items.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index f832456821..b31fe1f5a6 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -859,7 +859,11 @@ sub GetItemsForInventory { # Auth values foreach (keys %$row) { - if (defined($avmapping->{"items.$_,".$row->{'frameworkcode'}.",".$row->{$_}})) { + if ( + defined( + $avmapping->{ "items.$_," . $row->{'frameworkcode'} . "," . ( $row->{$_} // q{} ) } + ) + ) { $row->{$_} = $avmapping->{"items.$_,".$row->{'frameworkcode'}.",".$row->{$_}}; } } -- 2.39.5