From 9f5e86074f44bae7d5d8dd97e52390ea79291015 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 30 Jul 2021 19:20:29 +0000 Subject: [PATCH] Bug 28533: Fix other ocurrence Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit f8798251724b58abffd86fc760144487ed2775d1) Signed-off-by: Fridolin Somers --- C4/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Items.pm b/C4/Items.pm index ee1bc5493c..300e87db22 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1675,6 +1675,7 @@ sub PrepareItemrecordDisplay { my $CNtag = substr( $itemcn_pref, 0, 3 ); next unless my $field = $itemrecord->field($CNtag); my $CNsubfields = substr( $itemcn_pref, 3 ); + $CNsubfields = undef if $CNsubfields eq ''; $defaultvalue = $field->as_string( $CNsubfields, ' '); last if $defaultvalue; } -- 2.39.5