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

(-)a/C4/ImportBatch.pm (-1 / +1 lines)
Lines 799-805 sub _batchCommitItems { Link Here
799
            $updsth->finish();
799
            $updsth->finish();
800
            $num_items_replaced++;
800
            $num_items_replaced++;
801
        } elsif (
801
        } elsif (
802
            # We aren't replacing, but the incoming file ahs a barcode, we need to check if it exists
802
            # We aren't replacing, but the incoming file has a barcode, we need to check if it exists
803
            $duplicate_barcode &&
803
            $duplicate_barcode &&
804
            ( $item_match = Koha::Items->find({ barcode => $item->{'barcode'} }) )
804
            ( $item_match = Koha::Items->find({ barcode => $item->{'barcode'} }) )
805
        ) {
805
        ) {
(-)a/t/db_dependent/ImportBatch.t (-2 / +1 lines)
Lines 404-410 subtest "Do not adjust biblionumber when replacing items during import" => sub { Link Here
404
    is( $import_item->import_error, undef, 'No error was reported' );
404
    is( $import_item->import_error, undef, 'No error was reported' );
405
405
406
    is( $item1->biblionumber, $original_biblionumber, "Item's biblionumber has not changed" );
406
    is( $item1->biblionumber, $original_biblionumber, "Item's biblionumber has not changed" );
407
    is( $item1->biblionumber, $original_biblioitemnumber, "Item's biblioitemnumber has not changed" );
407
    is( $item1->biblioitemnumber, $original_biblioitemnumber, "Item's biblioitemnumber has not changed" );
408
    is( $item1->homebranch, $library->branchcode, "Item was overlaid successfully" );
408
    is( $item1->homebranch, $library->branchcode, "Item was overlaid successfully" );
409
};
409
};
410
410
411
- 

Return to bug 32804