[freeside-commits] freeside/FS/FS/part_export thirdlane.pm, 1.1.2.3, 1.1.2.4

Ivan,,, ivan at wavetail.420.am
Tue Jan 26 00:35:46 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv4394/FS/FS/part_export

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	thirdlane.pm 
Log Message:
svc_pbx.title uniqueness (kludgy) and force to alphanumeric+space and 19 char max when using thirdlane (conservative guess for 1st pass implementation), RT#7051

Index: thirdlane.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/thirdlane.pm,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- thirdlane.pm	26 Jan 2010 07:15:37 -0000	1.1.2.3
+++ thirdlane.pm	26 Jan 2010 08:35:44 -0000	1.1.2.4
@@ -41,6 +41,12 @@
 
   if ( $svc_x->isa('FS::svc_pbx') ) {
 
+    return 'Name must be 19 characters or less (thirdlane restriction?)'
+      if length($svc_x->title) > 19;
+
+    return 'Name must consist of alphanumerics and spaces only (thirdlane restriction?)'
+      unless $svc_x->title =~ /^[\w\s]+$/;
+
     my $tenant = {
       'tenant'   => $svc_x->title,
       'maxusers' => $svc_x->max_extensions,



More information about the freeside-commits mailing list