From: ivan Date: Fri, 7 Sep 2007 03:45:16 +0000 (+0000) Subject: default cancellation subject so the emails work even when people don't set one in... X-Git-Tag: TRIXBOX_2_6~392 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f9d1a71899dd7d2600584aa8e06a08293b7783f7;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 c411fb32f..77438c124 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -552,7 +552,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?