From 7bf84bc20f9576044a70770090909ad2635e65a0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 21 Jul 2023 11:55:52 +0200 Subject: [PATCH] Bug 33940: Fix selfreg please squash with first patch --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 47d321d22c7..bc922a9ee04 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -138,7 +138,7 @@ if ( $action eq 'create' ) { # No point in checking the cardnumber if it's missing and mandatory, it'll just generate a # spurious length warning. my $patron = Koha::Patrons->find($borrower{borrowernumber}); - $is_cardnumber_valid = Koha::Policy::Patrons::Cardnumber($borrower{cardnumber}, $patron); + $is_cardnumber_valid = Koha::Policy::Patrons::Cardnumber->is_valid($borrower{cardnumber}, $patron); unless ($is_cardnumber_valid) { for my $message ( @{ $is_cardnumber_valid->messages } ) { if ( $message eq 'already_exists' ) { -- 2.25.1