Bugzilla – Attachment 122430 Details for
Bug 26352
Add plugin hooks to transform patron barcodes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26352: Replace call to barcode_generate with call to patron_barcode_transform
Bug-26352-Replace-call-to-barcodegenerate-with-cal.patch (text/plain), 935 bytes, created by
Kyle M Hall (khall)
on 2021-06-25 12:03:51 UTC
(
hide
)
Description:
Bug 26352: Replace call to barcode_generate with call to patron_barcode_transform
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-06-25 12:03:51 UTC
Size:
935 bytes
patch
obsolete
>From 0bf37e532a86a42299bd4fb22e1adb19f4ea08b5 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 20 Nov 2020 08:32:14 -0500 >Subject: [PATCH] Bug 26352: Replace call to barcode_generate with call to > patron_barcode_transform > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Patron.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 3e5807323d..6441394cc9 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -112,7 +112,7 @@ Autogenerate next cardnumber from highest value found in database > sub fixup_cardnumber { > my ( $self ) = @_; > >- my ( $max ) = Koha::Plugins->call( 'barcode_generate', 'patron', $self ); >+ my ( $max ) = Koha::Plugins->call( 'patron_barcode_transform', $self ) || undef; > > $max ||= Koha::Patrons->search({ > cardnumber => {-regexp => '^-?[0-9]+$'} >-- >2.30.1 (Apple Git-130)
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 26352
:
109533
|
109547
|
113579
|
113580
|
113880
|
113885
|
113886
|
113887
|
113888
|
115167
|
115168
|
115169
|
115170
|
115171
|
118691
|
118692
|
118693
|
118694
|
118695
|
122428
|
122429
| 122430 |
122431
|
122432