Bugzilla – Attachment 88162 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: Add test to show autoBarcode annual increment bug
Bug-21937-Add-test-to-show-autoBarcode-annual-incr.patch (text/plain), 1.17 KB, created by
Martin Renvoize (ashimema)
on 2019-04-17 10:39:51 UTC
(
hide
)
Description:
Bug 21937: Add test to show autoBarcode annual increment bug
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-17 10:39:51 UTC
Size:
1.17 KB
patch
obsolete
>From a2ad7931f7aa2412452745a34cedc256265d6566 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: Add test to show autoBarcode annual increment bug > >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: Martin Renvoize <martin.renvoize@ptfs-europe.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 >@@ -47,6 +47,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.20.1
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