]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Tue, 7 Jun 2022 09:12:21 +0000 (11:12 +0200)
commitfc4139d5aadfdae3d7bc4b8d3d9a6f8889759eec
tree43e90c0a2df3046cbe66e57e85664c6eac76153a
parentf8d11504b7513fe797e9ed3050887026d0746ef8
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>
(cherry picked from commit c7a8a456c7dcc0bc2a015968f7a2c0e9ac2370f0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e5d97a001d3b70d1a2e436fd490c2820f448784f)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
C4/ImportBatch.pm