[freeside-commits] freeside/FS/FS/part_export thirdlane.pm, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Tue Jan 26 00:35:45 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv4385/FS/FS/part_export
Modified Files:
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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- thirdlane.pm 26 Jan 2010 07:15:36 -0000 1.2
+++ thirdlane.pm 26 Jan 2010 08:35:43 -0000 1.3
@@ -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