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:
parent
56d895da8b
commit
aa1d86920b
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue