empty From address in default message templates, #15448
authormark <mark>
Tue, 6 Dec 2011 01:44:48 +0000 (01:44 +0000)
committermark <mark>
Tue, 6 Dec 2011 01:44:48 +0000 (01:44 +0000)
FS/FS/msg_template.pm

index 50efcdb..e47776c 100644 (file)
@@ -652,8 +652,7 @@ sub _upgrade_data {
         my $new = new FS::msg_template({
           'msgname'   => $oldname,
           'agentnum'  => $agentnum,
-          'from_addr' => ($from && $conf->config($from, $agentnum)) || 
-                         $conf->config('invoice_from', $agentnum),
+          'from_addr' => ($from && $conf->config($from, $agentnum)) || '',
           'bcc_addr'  => ($bcc && $conf->config($from, $agentnum)) || '',
           'subject'   => ($subject && $conf->config($subject, $agentnum)) || '',
           'mime_type' => 'text/html',