]> git.koha-community.org Git - koha.git/commit
Bug 37550: CheckItemPreSave should run barcodes through barcodedecode
authorNick Clemens <nick@bywatersolutions.com>
Thu, 1 Aug 2024 18:01:25 +0000 (18:01 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 7 Nov 2024 16:32:39 +0000 (17:32 +0100)
commita262ffbdfa2adf54f36774547fd95c30b83ed8c6
tree164c9525b6bc5fc57abaeba875b0a13c116c41eb
parent5cab218d91cae9088cf043917cdd00c22574a089
Bug 37550: CheckItemPreSave should run barcodes through barcodedecode

In Koha::Item we run a barcode through barcodedecode before any save.
We should do the same when checking barcodes to avoid a duplicate error
when the barcode is cleaned before it is written to the DB

To test:
1 - Follow previous test plan
2 - Note that after this patch is applied there is no exception
    All items are skipped as duplicate barcodes

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Items.pm