projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f2082
)
strip non-digits from contact_phone.phonenum, RT#24052
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 21 Oct 2013 03:42:45 +0000
(20:42 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 21 Oct 2013 03:42:45 +0000
(20:42 -0700)
FS/FS/contact_phone.pm
patch
|
blob
|
history
diff --git
a/FS/FS/contact_phone.pm
b/FS/FS/contact_phone.pm
index
ad8e8f7
..
55cb09d
100644
(file)
--- 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.