Bugzilla – Attachment 113887 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), 919 bytes, created by
Martin Renvoize (ashimema)
on 2020-11-20 14:16:23 UTC
(
hide
)
Description:
Bug 26352: Replace call to barcode_generate with call to patron_barcode_transform
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-11-20 14:16:23 UTC
Size:
919 bytes
patch
obsolete
>From 0241d55d4f390a5fdb012904c83aba90756eb9ee 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 49a2153e27..5fd9bcf832 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.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 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