fix svc_acct welcome message, RT#10268
authormark <mark>
Thu, 18 Nov 2010 18:54:59 +0000 (18:54 +0000)
committermark <mark>
Thu, 18 Nov 2010 18:54:59 +0000 (18:54 +0000)
FS/FS/svc_acct.pm

index 94a839b..f2b13c3 100644 (file)
@@ -749,7 +749,8 @@ sub insert {
     my $msgnum = $conf->config('welcome_msgnum', $agentnum);
     if ( $msgnum ) {
       my $msg_template = qsearchs('msg_template', { msgnum => $msgnum });
-      $error = $msg_template->send('cust_main' => $cust_main);
+      $error = $msg_template->send('cust_main' => $cust_main,
+                                   'object'    => $self);
     }
     else { #!$msgnum
       my ($to,$welcome_template,$welcome_from,$welcome_subject,$welcome_subject_template,$welcome_mimetype)