View | Details | Raw Unified | Return to bug 29719
Collapse All | Expand All

(-)a/C4/Items.pm (-1 / +4 lines)
Lines 303-308 sub ModItemFromMarc { Link Here
303
    my $item_object = Koha::Items->find($itemnumber);
303
    my $item_object = Koha::Items->find($itemnumber);
304
    my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' );
304
    my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' );
305
305
306
    # When importing items we blank this column, we need to set it to the existing value
307
    # to prevent it being blanked by set_or_blank
308
    $item->{onloan} = $item_object->onloan if( $item_object->onloan && !defined $item->{onloan} );
309
306
    my ( $perm_loc_tag, $perm_loc_subfield ) = C4::Biblio::GetMarcFromKohaField( "items.permanent_location" );
310
    my ( $perm_loc_tag, $perm_loc_subfield ) = C4::Biblio::GetMarcFromKohaField( "items.permanent_location" );
307
    my $has_permanent_location = defined $perm_loc_tag && defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield );
311
    my $has_permanent_location = defined $perm_loc_tag && defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield );
308
312
309
- 

Return to bug 29719