diff options
author | Mark Wells <mark@freeside.biz> | 2013-08-23 15:24:24 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-08-23 15:24:24 -0700 |
commit | 5c68c43be829fd926ea148552c6bb87cdcafd7a1 (patch) | |
tree | b3a7b9cb965197b56ac67d673a332b37f3039cd6 /FS/FS/Cron | |
parent | a9a791f0e93cf43f93a4bd720c7681d08d84f18c (diff) |
pass correct arguments to msg_template::prepare, #24659
Diffstat (limited to 'FS/FS/Cron')
-rw-r--r-- | FS/FS/Cron/alert_expiration.pm | 3 | ||||
-rw-r--r-- | FS/FS/Cron/notify.pm | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/Cron/alert_expiration.pm b/FS/FS/Cron/alert_expiration.pm index eb53ea8..5961e61 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); diff --git a/FS/FS/Cron/notify.pm b/FS/FS/Cron/notify.pm index 9ad7a49..1859fca 100644 --- a/FS/FS/Cron/notify.pm +++ b/FS/FS/Cron/notify.pm @@ -108,7 +108,8 @@ END my $msg_template = qsearchs('msg_template', { msgnum => $msgnum }); $cust_main->setfield('packages', \\@packages); $cust_main->setfield('recurdates', \\@recurdates); - $error = $msg_template->send('cust_main' => $cust_main); + $error = $msg_template->send('cust_main' => $cust_main, + 'object' => $cust_main); } else { $error = $cust_main->notify( 'impending_recur_template', |