Bugzilla – Attachment 87953 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.18 KB, created by
Michal Denar
on 2019-04-14 18:53:19 UTC
(
hide
)
Description:
Bug 21937: Syspref autoBarcode annual doesn't increment properly barcode in some cases
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2019-04-14 18:53:19 UTC
Size:
1.18 KB
patch
obsolete
>From 0cd0ea6fa827b3d6b95bf865a2afb03557ec71a9 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 > >Signed-off-by: Michal Denar <black23@gmail.com> > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > 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 a116b45565..7573bbd0da 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.11.0
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