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:
parent
b0b2554d5f
commit
b00aab7052
|
|
@ -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]+$'}
|
||||
|
|
|
|||
Loading…
Reference in New Issue