RT#17599: display cancelled services from history [welcome_email sensitive to noexpor...
authorJonathan Prykop <jonathan@freeside.biz>
Fri, 8 Jul 2016 00:09:27 +0000 (19:09 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Fri, 8 Jul 2016 00:09:27 +0000 (19:09 -0500)
FS/FS/svc_acct.pm

index 74ddcd5..a86db9c 100644 (file)
@@ -738,7 +738,7 @@ sub insert {
 
     #welcome email
     my @welcome_exclude_svcparts = $conf->config('svc_acct_welcome_exclude');
-    unless ( grep { $_ eq $self->svcpart } @welcome_exclude_svcparts ) {
+    unless ($FS::svc_Common::noexport_hack or ( grep { $_ eq $self->svcpart } @welcome_exclude_svcparts )) {
         my $error = '';
         my $msgnum = $conf->config('welcome_msgnum', $agentnum);
         if ( $msgnum ) {