]> git.koha-community.org Git - koha.git/commit
Bug 28152: Fix import_items row creation if duplicate barcode
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Apr 2021 10:12:23 +0000 (12:12 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 May 2022 11:53:43 +0000 (08:53 -0300)
commitc7a8a456c7dcc0bc2a015968f7a2c0e9ac2370f0
treebf4a6de2d17a36c8ef8db3652978956e997b61bf
parent05934b89b1b43ceb88928b48a4e1fd69708ac61b
Bug 28152: Fix import_items row creation if duplicate barcode

We are trying to insert "duplicate item barcode" into import_items.itemnumber (integer),
it fails with "Incorrect integer value: 'duplicate item barcode' for column 'itemnumber' at row 1"

To reproduce:
Export a biblio with an item
Import it
=> The item is not added, and there is no new row in import_items.

The error only appears in the log if you comment the close STDERR and
close STDOUT lines

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/ImportBatch.pm