[freeside-commits] freeside/FS/FS svc_acct.pm,1.317.2.5,1.317.2.6
Ivan,,,
ivan at wavetail.420.am
Sun Jan 15 20:23:47 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4786
Modified Files:
Tag: FREESIDE_2_3_BRANCH
svc_acct.pm
Log Message:
fix provisioning svc_acct records with empty finger / without package, RT#15340
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.317.2.5
retrieving revision 1.317.2.6
diff -u -w -d -r1.317.2.5 -r1.317.2.6
--- svc_acct.pm 19 Dec 2011 01:59:16 -0000 1.317.2.5
+++ svc_acct.pm 16 Jan 2012 04:23:45 -0000 1.317.2.6
@@ -1285,8 +1285,6 @@
}
- # $error = $self->ut_textn('finger');
- # return $error if $error;
if ( $self->getfield('finger') eq '' ) {
my $cust_pkg = $self->svcnum
? $self->cust_svc->cust_pkg
@@ -1296,7 +1294,9 @@
$self->setfield('finger', $cust_main->first.' '.$cust_main->get('last') );
}
}
- $self->getfield('finger') =~ /^([\w \,\.\-\'\&\t\!\@\#\$\%\(\)\+\;\"\?\/\*\<\>]+)$/
+ # $error = $self->ut_textn('finger');
+ # return $error if $error;
+ $self->getfield('finger') =~ /^([\w \,\.\-\'\&\t\!\@\#\$\%\(\)\+\;\"\?\/\*\<\>]*)$/
or return "Illegal finger: ". $self->getfield('finger');
$self->setfield('finger', $1);
More information about the freeside-commits
mailing list