Bugzilla – Attachment 82828 Details for
Bug 21937
Syspref autoBarcode annual doesn't increment properly barcode in some cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21937: Syspref autoBarcode annual doesn't increment properly barcode in some cases
Bug-21937-Syspref-autoBarcode-annual-doesnt-increm.patch (text/plain), 1.08 KB, created by
Frédéric Demians
on 2018-12-03 21:01:50 UTC
(
hide
)
Description:
Bug 21937: Syspref autoBarcode annual doesn't increment properly barcode in some cases
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2018-12-03 21:01:50 UTC
Size:
1.08 KB
patch
obsolete
>From d4f20a77423e5e22f66ba5584e2793b1d7cdd836 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Mon, 3 Dec 2018 18:27:08 +0100 >Subject: [PATCH] Bug 21937: Syspref autoBarcode annual doesn't increment > properly barcode in some cases > >This patch show the issue. If the DB contains a barcode (not auto attributed >by Koha) which begin with the year used to generate automatically a new one, >there may be a 'collision'. > >prove -v t/db_dependent/Barcodes_ValueBuilder.t >--- > t/db_dependent/Barcodes_ValueBuilder.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/db_dependent/Barcodes_ValueBuilder.t b/t/db_dependent/Barcodes_ValueBuilder.t >index a116b45..7573bbd 100644 >--- a/t/db_dependent/Barcodes_ValueBuilder.t >+++ b/t/db_dependent/Barcodes_ValueBuilder.t >@@ -49,6 +49,12 @@ my $item_2 = $builder->build({ > my $item_3 = $builder->build({ > source => 'Item', > value => { >+ barcode => '201200345' >+ } >+}); >+my $item_4 = $builder->build({ >+ source => 'Item', >+ value => { > barcode => '2012-0034' > } > }); >-- >2.7.4
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 21937
:
82828
|
82829
|
87953
|
87954
|
88162
|
88163