[freeside-commits] branch FREESIDE_3_BRANCH updated. 3d6444ea027fe5e67962388faadb162de5db8de1
Ivan
ivan at 420.am
Sun Oct 20 20:42:47 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 3d6444ea027fe5e67962388faadb162de5db8de1 (commit)
from 4e9e8e5c0c44815ee77d92a5a1034df52b88fafa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3d6444ea027fe5e67962388faadb162de5db8de1
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Oct 20 20:42:46 2013 -0700
strip non-digits from contact_phone.phonenum, RT#24052
diff --git a/FS/FS/contact_phone.pm b/FS/FS/contact_phone.pm
index ad8e8f7..55cb09d 100644
--- a/FS/FS/contact_phone.pm
+++ b/FS/FS/contact_phone.pm
@@ -124,6 +124,10 @@ sub check {
;
return $error if $error;
+ #strip non-digits, UI should format numbers per countrycode
+ (my $phonenum = $self->phonenum ) =~ s/\D//g;
+ $self->phonenum($phonenum);
+
$self->SUPER::check;
}
@@ -131,8 +135,6 @@ sub check {
=head1 BUGS
-The author forgot to customize this manpage.
-
=head1 SEE ALSO
L<FS::Record>, schema.html from the base documentation.
-----------------------------------------------------------------------
Summary of changes:
FS/FS/contact_phone.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list