X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FCron%2Falert_expiration.pm;h=5961e61552c16161a4de04123d735d24c2e2c0ec;hb=267020ff22d48bb82a02a13525f0e0844ef4d6bd;hp=eb53ea88007efec94d2d64d8fc0ee2776905ab4d;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/FS/FS/Cron/alert_expiration.pm b/FS/FS/Cron/alert_expiration.pm index eb53ea880..5961e6155 100644 --- a/FS/FS/Cron/alert_expiration.pm +++ b/FS/FS/Cron/alert_expiration.pm @@ -100,7 +100,8 @@ sub alert_expiration { if ( $msgnum ) { # new hotness my $msg_template = qsearchs('msg_template', { msgnum => $msgnum } ); $customer->setfield('expdate', $expire_time); - $error = $msg_template->send('cust_main' => $customer); + $error = $msg_template->send('cust_main' => $customer, + 'object' => $customer); } else { #!$msgnum, the hard way $mail_sender = $conf->config('invoice_from', $agentnum);