freeside/FS/FS svc_acct.pm,1.109.2.42,1.109.2.43
ivan
ivan at pouncequick.420.am
Sat May 8 00:47:04 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv14328
Modified Files:
Tag: FREESIDE_1_4_BRANCH
svc_acct.pm
Log Message:
default finger to first+last
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.109.2.42
retrieving revision 1.109.2.43
diff -u -d -r1.109.2.42 -r1.109.2.43
--- svc_acct.pm 6 May 2004 22:29:06 -0000 1.109.2.42
+++ svc_acct.pm 8 May 2004 07:47:01 -0000 1.109.2.43
@@ -818,6 +818,15 @@
# $error = $self->ut_textn('finger');
# return $error if $error;
+ if ( $self->getfield('finger') eq '' ) {
+ my $cust_pkg = $self->svcnum
+ ? $self->cust_svc->cust_pkg
+ : qsearchs('cust_pkg', { 'pkgnum' => $self->getfield('pkgnum') } );
+ if ( $cust_pkg ) {
+ my $cust_main = $cust_pkg->cust_main;
+ $self->setfield('finger', $cust_main->first.' '.$cust_main->get('last') );
+ }
+ }
$self->getfield('finger') =~
/^([\w \t\!\@\#\$\%\&\(\)\-\+\;\'\"\,\.\?\/\*\<\>]*)$/
or return "Illegal finger: ". $self->getfield('finger');
More information about the freeside-commits
mailing list