From: ivan Date: Fri, 7 Sep 2007 03:45:18 +0000 (+0000) Subject: default cancellation subject so the emails work even when people don't set one in... X-Git-Tag: freeside_1_7_3rc1~343 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=08b8bc696d97821986839e83b354ec3eb830f2c0;p=freeside.git default cancellation subject so the emails work even when people don't set one in config --- 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?