[freeside-commits] freeside/FS/FS/part_export communigate_pro.pm, 1.23, 1.24

Ivan,,, ivan at wavetail.420.am
Sun Feb 21 23:13:31 PST 2010


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

Modified Files:
	communigate_pro.pm 
Log Message:
communigate: domain aliases, enabled services & administrator domain, RT#7083

Index: communigate_pro.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/communigate_pro.pm,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- communigate_pro.pm	22 Feb 2010 03:22:13 -0000	1.23
+++ communigate_pro.pm	22 Feb 2010 07:13:29 -0000	1.24
@@ -139,6 +139,8 @@
   );
   $settings{'AccountsLimit'} = $svc_domain->max_accounts
     if $svc_domain->max_accounts;
+  $settings{'AdminDomainName'} = $svc_domain->parent_svc_x->domain
+    if $svc_domain->parent_svcnum;
 
   my @options = ( $create, $svc_domain->domain, \%settings );
 
@@ -279,6 +281,9 @@
     if $old->max_accounts ne $new->max_accounts;
   $settings{'DomainAccessModes'} = $new->cgp_accessmodes
     if $old->cgp_accessmodes ne $new->cgp_accessmodes;
+  $settings{'AdminDomainName'} =
+    $new->parent_svcnum ? $new->parent_svc_x->domain : ''
+      if $old->parent_svcnum != $new->parent_svcnum;
 
   if ( keys %settings ) {
     my $error = $self->communigate_pro_queue( $new->svcnum,



More information about the freeside-commits mailing list