From 76ed5a934f913f43a88d930fc18423fe27e3aade 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 Signed-off-by: Tomas Cohen Arazi --- 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.42.0