From 972414f792ff0c8142723d641ac77b05bb5b532d Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 4 Mar 2021 10:30:31 -0500 Subject: [PATCH] Bug 27837: Permanent location to be empty string, check if key exists --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index eedd608dec..a40118ef31 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -306,7 +306,7 @@ sub ModItemFromMarc { my $item_object = Koha::Items->find($itemnumber); my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); - my $has_permanent_location = $item->{permanent_location}; + my $has_permanent_location = exists $item->{permanent_location}; # Retrieving the values for the fields that are not linked my @mapped_fields = Koha::MarcSubfieldStructures->search( -- 2.24.1 (Apple Git-126)