From 1c59bba12621e154765a8255534e94a041dfd200 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 17 Apr 2012 15:52:14 -0700 Subject: link tickets to services, #17067 --- FS/FS/svc_phone.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FS/FS/svc_phone.pm') diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm index 118748e..b395ea6 100644 --- a/FS/FS/svc_phone.pm +++ b/FS/FS/svc_phone.pm @@ -218,13 +218,14 @@ Class method which returns an SQL fragment to search for the given string. sub search_sql { my( $class, $string ) = @_; + my $conf = new FS::Conf; + if ( $conf->exists('svc_phone-allow_alpha_phonenum') ) { $string =~ s/\W//g; } else { $string =~ s/\D//g; } - my $conf = new FS::Conf; my $ccode = ( $conf->exists('default_phone_countrycode') && $conf->config('default_phone_countrycode') ) -- cgit v1.1