I see this warning : [WARN] Use of uninitialized value in join or string at /home/koha/src/Koha/Item.pm line 1041. I think it is in Koha::Item->columns_to_str() when more_subfields_xml contains an empty subfield : <record> <leader> a </leader> <datafield tag="999" ind1=" " ind2=" "> <subfield code="q"></subfield> </datafield> </record>
This change could work. diff --git a/Koha/Item.pm b/Koha/Item.pm index e508e7eb55c..f431f739b4f 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -1107,7 +1107,7 @@ sub columns_to_str { } while ( my ( $k, $v ) = each %$more_values ) { - $values->{$k} = join ' | ', @$v; + $values->{$k} = join ' | ', map { defined $_ ? $_ : q{} } @$v; } }