Bug 27837: Permanent location to be empty string, check if key exists

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2021-03-04 10:30:31 -05:00 committed by Jonathan Druart
parent 56d895da8b
commit aa1d86920b
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,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(