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

(-)a/C4/Items.pm (-1 / +4 lines)
Lines 304-309 sub ModItemFromMarc { Link Here
304
    my $item_object = Koha::Items->find($itemnumber);
304
    my $item_object = Koha::Items->find($itemnumber);
305
    my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' );
305
    my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' );
306
306
307
    my $has_permanent_location = $item->{permanent_location};
308
307
    # Retrieving the values for the fields that are not linked
309
    # Retrieving the values for the fields that are not linked
308
    my @mapped_fields = Koha::MarcSubfieldStructures->search(
310
    my @mapped_fields = Koha::MarcSubfieldStructures->search(
309
        {
311
        {
Lines 326-331 sub ModItemFromMarc { Link Here
326
    $item_object = $item_object->set_or_blank($item);
328
    $item_object = $item_object->set_or_blank($item);
327
    $item_object->cn_sort($existing_cn_sort); # Resetting to the existing value
329
    $item_object->cn_sort($existing_cn_sort); # Resetting to the existing value
328
330
331
    $item_object->make_column_dirty('permanent_location') if $has_permanent_location;
332
329
    my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode );
333
    my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode );
330
    $item_object->more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields));
334
    $item_object->more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields));
331
    $item_object->store({ skip_record_index => $params->{skip_record_index} });
335
    $item_object->store({ skip_record_index => $params->{skip_record_index} });
332
- 

Return to bug 27837