summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/Record.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 6409da33d..11255f4b0 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -730,7 +730,7 @@ sub ut_phonen {
my $phonen = $self->getfield($field);
if ( $phonen eq '' ) {
$self->setfield($field,'');
- } elsif ( $country eq 'US' ) {
+ } elsif ( $country eq 'US' || $country eq 'CA' ) {
$phonen =~ s/\D//g;
$phonen =~ /^(\d{3})(\d{3})(\d{4})(\d*)$/
or return "Illegal (phone) $field: ". $self->getfield($field);
@@ -949,7 +949,7 @@ sub DESTROY { return; }
=head1 VERSION
-$Id: Record.pm,v 1.21 2001-08-11 05:50:52 ivan Exp $
+$Id: Record.pm,v 1.22 2001-08-17 11:28:03 ivan Exp $
=head1 BUGS