Bug 26352: Replace call to barcode_generate with call to patron_barcode_transform

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2020-11-20 08:32:14 -05:00 committed by Jonathan Druart
parent b0b2554d5f
commit b00aab7052
1 changed files with 1 additions and 1 deletions

View File

@ -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]+$'}