diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index b073a2b188..5f276ace57 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -799,7 +799,7 @@ sub _batchCommitItems { $updsth->finish(); $num_items_replaced++; } elsif ( - # We aren't replacing, but the incoming file ahs a barcode, we need to check if it exists + # We aren't replacing, but the incoming file has a barcode, we need to check if it exists $duplicate_barcode && ( $item_match = Koha::Items->find({ barcode => $item->{'barcode'} }) ) ) { diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t index 74340b7ea8..c9ef54391a 100755 --- a/t/db_dependent/ImportBatch.t +++ b/t/db_dependent/ImportBatch.t @@ -404,7 +404,7 @@ subtest "Do not adjust biblionumber when replacing items during import" => sub { is( $import_item->import_error, undef, 'No error was reported' ); is( $item1->biblionumber, $original_biblionumber, "Item's biblionumber has not changed" ); - is( $item1->biblionumber, $original_biblioitemnumber, "Item's biblioitemnumber has not changed" ); + is( $item1->biblioitemnumber, $original_biblioitemnumber, "Item's biblioitemnumber has not changed" ); is( $item1->homebranch, $library->branchcode, "Item was overlaid successfully" ); };