From 375c6ba21155857a97c1e2749fbd909b6e936e7e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 21 Jul 2023 09:44:18 +0000 Subject: [PATCH] Bug 33940: (QA follow-up) Remove obsolete length of 20 Currently 32. Could be 43 tomorrow :) Signed-off-by: Marcel de Rooy --- Koha/Policy/Patrons/Cardnumber.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Policy/Patrons/Cardnumber.pm b/Koha/Policy/Patrons/Cardnumber.pm index 1d3ec4cbe3f..99cfffcfb17 100644 --- a/Koha/Policy/Patrons/Cardnumber.pm +++ b/Koha/Policy/Patrons/Cardnumber.pm @@ -85,7 +85,7 @@ sub get_valid_length { my ($class) = @_; my $borrower = Koha::Database->new->schema->resultset('Borrower'); my $field_size = $borrower->result_source->column_info('cardnumber')->{size}; - my ( $min, $max ) = ( 0, $field_size ); # borrowers.cardnumber is a nullable varchar(20) + my ( $min, $max ) = ( 0, $field_size ); $min = 1 if C4::Context->preference('BorrowerMandatoryField') =~ /cardnumber/; if ( my $cardnumber_length = C4::Context->preference('CardnumberLength') ) { -- 2.25.1