summaryrefslogtreecommitdiff
path: root/FS/FS/Cron
diff options
context:
space:
mode:
authormark <mark>2010-09-01 17:50:54 +0000
committermark <mark>2010-09-01 17:50:54 +0000
commit51f402605a8742284f81d1097f3e6df29ee6e2dc (patch)
tree2b55440bc56b66d96fe05e7f061ce111f01514d2 /FS/FS/Cron
parentf48936de00e81e89ea0f84b28e9c7b213fe898a8 (diff)
make expdate available in new alerter templates, RT#9786
Diffstat (limited to 'FS/FS/Cron')
-rw-r--r--FS/FS/Cron/alert_expiration.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/Cron/alert_expiration.pm b/FS/FS/Cron/alert_expiration.pm
index 364fc60..eb53ea8 100644
--- a/FS/FS/Cron/alert_expiration.pm
+++ b/FS/FS/Cron/alert_expiration.pm
@@ -99,6 +99,7 @@ sub alert_expiration {
my $msgnum = $conf->config('alerter_msgnum', $agentnum);
if ( $msgnum ) { # new hotness
my $msg_template = qsearchs('msg_template', { msgnum => $msgnum } );
+ $customer->setfield('expdate', $expire_time);
$error = $msg_template->send('cust_main' => $customer);
}
else { #!$msgnum, the hard way