@@ -, +, @@ defined --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -305,7 +305,7 @@ sub ModItemFromMarc { my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); my ( $perm_loc_tag, $perm_loc_subfield ) = C4::Biblio::GetMarcFromKohaField( "items.permanent_location" ); - my $has_permanent_location = defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield ); + my $has_permanent_location = defined $perm_loc_tag && defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield ); # Retrieving the values for the fields that are not linked my @mapped_fields = Koha::MarcSubfieldStructures->search( --