From b00aab7052490a2e1acf42295bc6e2772c26d6d3 Mon Sep 17 00:00:00 2001 From: Kyle M Hall 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 Signed-off-by: Jonathan Druart --- Koha/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index a5a86c4684..2575a6732e 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.39.5