[freeside-commits] freeside/FS/FS svc_acct.pm,1.323,1.324
Ivan,,,
ivan at wavetail.420.am
Sun Jan 15 20:23:52 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4834
Modified Files:
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.323
retrieving revision 1.324
diff -u -w -d -r1.323 -r1.324
--- svc_acct.pm 11 Jan 2012 04:32:53 -0000 1.323
+++ svc_acct.pm 16 Jan 2012 04:23:50 -0000 1.324
@@ -1287,8 +1287,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
@@ -1298,7 +1296,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