[freeside-commits] freeside/FS/FS svc_acct.pm,1.265,1.266
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Aug 14 15:13:04 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv1333
Modified Files:
svc_acct.pm
Log Message:
add svcnum lookup for svc_acct
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -d -r1.265 -r1.266
--- svc_acct.pm 5 Aug 2009 02:27:35 -0000 1.265
+++ svc_acct.pm 14 Aug 2009 22:13:02 -0000 1.266
@@ -429,7 +429,13 @@
$class->search_sql_field('username', $string ).
' ) ';
} else {
- $class->search_sql_field('username', $string);
+ ' ( '.
+ $class->search_sql_field('username', $string).
+ ( $string =~ /^\d+$/
+ ? 'OR '. $class->search_sql_field('svcnum', $string)
+ : ''
+ ).
+ ' ) ';
}
}
More information about the freeside-commits
mailing list