From f8798251724b58abffd86fc760144487ed2775d1 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 --- C4/Items.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Items.pm b/C4/Items.pm index 1f0d560e86..cfe6a63cf2 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1689,6 +1689,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