From f674b7c9b094749fcef770d1ae03640b69b1ec83 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 28 Aug 2012 02:05:55 -0700 Subject: remove validation from national_id old format per customer, RT#18543 --- FS/FS/cust_main/NationalID.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'FS') diff --git a/FS/FS/cust_main/NationalID.pm b/FS/FS/cust_main/NationalID.pm index cc8d55685..a742b7637 100644 --- a/FS/FS/cust_main/NationalID.pm +++ b/FS/FS/cust_main/NationalID.pm @@ -36,11 +36,15 @@ sub set_national_id_from_cgi { } elsif ( $cgi->param('national_id2') =~ /\S/ ) { my $oldic = $cgi->param('national_id2'); $oldic =~ s/\s//g; - if ( $oldic =~ /^\w\d{9}$/ ) { + + # can you please remove validation for "Old IC/Passport:" field, customer + # will have other field format like, RF/123456, I/5234234 ... + #if ( $oldic =~ /^\w\d{9}$/ ) { $self->national_id($oldic); - } else { - $error ||= "Illegal Old IC/Passport: ". $cgi->param('national_id2'); - } + #} else { + # $error ||= "Illegal Old IC/Passport: ". $cgi->param('national_id2'); + #} + } else { $error ||= 'Either NRIC or Old IC/Passport is required'; } -- cgit v1.2.1