]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 6 Jun 2022 14:16:03 +0000 (14:16 +0000)
commite5d97a001d3b70d1a2e436fd490c2820f448784f
tree820c25f477516cea19b16f37ed8ed754e2393f7e
parentbe11af15e61653f2f853a22870468bc8987fbdd4
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>
C4/ImportBatch.pm