From 08b8bc696d97821986839e83b354ec3eb830f2c0 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 7 Sep 2007 03:45:18 +0000 Subject: [PATCH] default cancellation subject so the emails work even when people don't set one in config --- FS/FS/cust_pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 444282ceb..ed9820af7 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -523,7 +523,7 @@ sub cancel { my $error = send_email( 'from' => $conf->config('invoice_from'), 'to' => \@invoicing_list, - 'subject' => $conf->config('cancelsubject'), + 'subject' => ( $conf->config('cancelsubject') || 'Cancellation Notice' ), 'body' => [ map "$_\n", $conf->config('cancelmessage') ], ); #should this do something on errors? -- 2.20.1