From b414c59897d8ccd42e5aece131a5d556fde50bd1 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 10 Jun 2021 14:02:16 +0000 Subject: [PATCH] Bug 28545: Noisy uninitialized warn at opac-MARCdetail.pl line 313 Content-Type: text/plain; charset=utf-8 Test plan: You need an item with some null values. Check your logs before and after applying this change. Signed-off-by: Marcel de Rooy --- opac/opac-MARCdetail.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl index 4362270959..90db18fdf9 100755 --- a/opac/opac-MARCdetail.pl +++ b/opac/opac-MARCdetail.pl @@ -310,8 +310,8 @@ foreach my $field (@fields) { $item->{ $subf[$i][0] } .= $subf[$i][1]; } else { - $item->{ $subf[$i][0] } .= GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], - $subf[$i][1], '', $tagslib, '', 'opac' ); + $item->{ $subf[$i][0] } .= ( GetAuthorisedValueDesc( $field->tag(), $subf[$i][0], + $subf[$i][1], '', $tagslib, '', 'opac' ) // q{} ); } my $kohafield = $tagslib->{ $field->tag() }->{ $subf[$i][0] }->{kohafield}; -- 2.20.1