Browse Source

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 <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 4 years ago
committed by Martin Renvoize
parent
commit
f2b1086387
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 6
      C4/Items.pm

6
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->{$_}};
}
}

Loading…
Cancel
Save