Bugzilla – Attachment 148317 Details for
Bug 32804
Importing and replacing items causes inconsistency when itemnumber match and biblio match disagree
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32804: (QA follow-up) Typo ahs and fix ImportBatch.t
Bug-32804-QA-follow-up-Typo-ahs-and-fix-ImportBatc.patch (text/plain), 2.03 KB, created by
Marcel de Rooy
on 2023-03-17 09:14:22 UTC
(
hide
)
Description:
Bug 32804: (QA follow-up) Typo ahs and fix ImportBatch.t
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-03-17 09:14:22 UTC
Size:
2.03 KB
patch
obsolete
>From 675b5ed1c6e55adc9f403824210c00d58227db25 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 17 Mar 2023 08:43:32 +0000 >Subject: [PATCH] Bug 32804: (QA follow-up) Typo ahs and fix ImportBatch.t >Content-Type: text/plain; charset=utf-8 > >Resolve: > # Failed test 'Item's biblioitemnumber has not changed' > # at t/db_dependent/ImportBatch.t line 407. > # > # got: '4261' > # expected: '2371' > >Do not compare $item1->biblionumber with $original_biblioitemnumber :) > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/ImportBatch.pm | 2 +- > t/db_dependent/ImportBatch.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >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" ); > }; > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32804
:
146034
|
146037
|
146292
|
146293
|
146345
|
146346
|
146579
|
147134
|
147135
|
147668
|
147669
|
147690
|
148314
|
148315
|
148316
| 148317 |
150363